Testunit: comparison of Fixnum with true failed (ArgumentError)

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:inoutput?‘
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:insetup_mediator’
from /usr/local/pkgs/ruby/lib/ruby/1.9/test/unit/ui/console/testrunner.rb:39:in start' from ./BulkTestRunner.rb:50:inrun’

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,

···


Bil, NASA, Hampton, Virginia, USA

P.S. I sent this to the mailing list a few hours ago, but it never showed up?
I am trying to go through the newsfeed this time…

Bil Kleb wrote:

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,

···


Bil