1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/runner.rb: convert Version to numeric array.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-09-05 02:57:49 +00:00
parent 594f527d76
commit 742a44d579

View file

@ -3,8 +3,7 @@ require 'test/unit/testcase'
require 'optparse'
rcsid = %w$Id$
Runner = rcsid[1].chomp(",v").freeze
Version = rcsid[2].scan(/\d+/, &method(:Integer)).freeze
Version = rcsid[2].scan(/\d+/).collect!(&method(:Integer)).freeze
Release = rcsid[3].freeze
class BulkTestSuite < Test::Unit::TestSuite
@ -35,7 +34,7 @@ runners_map = {
runner = 'console'
ARGV.options do |opt|
opt.program_name = Runner
opt.program_name = $0
opt.banner << " [tests...]"
opt.on("--runner=mode", runners_map, "UI mode (console, gtk,fox)") do |arg|
runner = arg