[#4567] Re: What's the biggest Ruby development? — Aleksi Niemel<aleksi.niemela@...>

Dave said:

18 messages 2000/08/23
[#4568] Q's on Marshal — Robert Feldt <feldt@...> 2000/08/23

[#4580] RubyUnit testcase run for different init params? — Robert Feldt <feldt@...> 2000/08/25

[#4584] Re: RubyUnit testcase run for different init params? — Dave Thomas <Dave@...> 2000/08/25

Robert Feldt <feldt@ce.chalmers.se> writes:

[#4623] Re: RubyUnit testcase run for different init params? — Robert Feldt <feldt@...> 2000/08/28

On Sat, 26 Aug 2000, Dave Thomas wrote:

[#4652] Andy and Dave's European Tour 2000 — Dave Thomas <Dave@...>

24 messages 2000/08/30
[#4653] Re: Andy and Dave's European Tour 2000 — matz@... (Yukihiro Matsumoto) 2000/08/30

Hi,

[#4657] Ruby tutorials for newbie — Kevin Liang <kevin@...> 2000/08/30

Hi,

[ruby-talk:04475] RubyUnit. Warnings to be expected?

From: Hugh Sasse Staff Elec Eng <hgs@...>
Date: 2000-08-16 14:34:58 UTC
List: ruby-talk #4475
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


In This Thread

Prev Next