testunit: comparison of Fixnum with true failed (ArgumentError)

B

Bil Kleb

I am trying to get the advection code that I released in a NASA tech brief
some time ago to work with ruby 1.9.0 (2004-02-11), but I have been stymied
with:

/usr/local/pkgs/ruby/lib/ruby/1.9/test/unit/ui/console/testrunner.rb:117:in `<=': comparison of Fixnum with true failed (ArgumentError)
from /usr/local/pkgs/ruby/lib/ruby/1.9/test/unit/ui/console/testrunner.rb:117:in `output?'
from /usr/local/pkgs/ruby/lib/ruby/1.9/test/unit/ui/console/testrunner.rb:107:in `output'
from /usr/local/pkgs/ruby/lib/ruby/1.9/test/unit/ui/console/testrunner.rb:51:in `setup_mediator'
from /usr/local/pkgs/ruby/lib/ruby/1.9/test/unit/ui/console/testrunner.rb:39:in `start'
from ./BulkTestRunner.rb:50:in `run'

where test/unit/ui/console/testrunner.rb defines:

116 def output?(level)
117 level <= @output_level
118 end

and for this case:

level = 2, class: Fixnum
@output_level = true, class: TrueClass

This occurs when trying to run BulkTestRunner.rb that I stole from Rubicon--see
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/36366

Then again, maybe now there is a better way to run and summarize the results of
all the test suites?

Thanks in advance,
 
B

Bil Kleb

Bil said:
I am trying to get the advection code that I released in a NASA tech brief
some time ago to work with ruby 1.9.0 (2004-02-11), but I have been stymied
with:

/usr/local/pkgs/ruby/lib/ruby/1.9/test/unit/ui/console/testrunner.rb:117:in
`<=': comparison of Fixnum with true failed (ArgumentError)

Found it: the second argument for TestRunner changed from a boolean to an
integer output level.

Later,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top