With ruby 1.4.4 (2000-04-14) [sparc-solaris2.7]
and RubyUnit 0.2.3 should I expect:
/usr/local/lib/ruby/site_ruby/1.4/runit/version.rb:2: warning: already
initialized constant VERSION
/usr/local/lib/ruby/1.4/observer.rb:7: warning: instance var
@observer_peers not initialized
/usr/local/lib/ruby/1.4/observer.rb:7: warning: instance var
@observer_peers not initialized
when my script has:
if __FILE__ == $0
# require(s) for RubyUnit
require "runit/testcase"
require 'runit/cui/testrunner'
require 'runit/testsuite'
# my testing class for nodes...
class Node_test < RUNIT::TestCase
def test_location
anode = Node.new()
anode.x = 3
anode.y = 4
anode.z = 5
assert_equal("(3, 4, 5)", anode.location)
end
end
# do all the tests.
RUNIT::CUI::TestRunner.run(Node_test.suite)
end
My test is passed OK, so I am not too worried. I will have to upgrade my
Ruby soon.
Thank you,
Hugh