Test/testunit/collector/test_objectspace.rb trouble report

Hi,

Test test/testunit/collector/test_objectspace.rb in the CVS gives following
2 errors. It seems that test_objectspace.rb depends order of Hash#each.
There are several ways to reduce this error and I could not find
"the only way" so I reported here without patch. Nathaniel?

Regards,
// NaHi

P.S. It looks very good suites.

  1. Failure!!!
    test_basic_collection(Test::Unit::Collector::TC_ObjectSpace) [./testunit/collector/test_objectspace.rb:40]:
    <#<Test::Unit::TestSuite:0x40419b5c @tests=[#<#Class:0x40419ddc:0x40419954 @test_passed=true, @method_name=“test_1”>,
    #<#Class:0x40419ddc:0x40419918 @test_passed=true, @method_name=“test_2”>, #<#Class:0x40419d78:0x404198c8 @test_passed=true,
    @method_name=“test_3”>], @name=“name”>> expected but was
    <#<Test::Unit::TestSuite:0x40419850 @tests=[#<#Class:0x40419ddc:0x40418e50 @test_passed=true, @method_name=“test_2”>,
    #<#Class:0x40419ddc:0x40418e14 @test_passed=true, @method_name=“test_1”>, #<#Class:0x40419d78:0x404182fc @test_passed=true,
    @method_name=“test_3”>], @name=“name”>>

  2. Failure!!!
    test_filtered_collection(Test::Unit::Collector::TC_ObjectSpace) [./testunit/collector/test_objectspace.rb:55]:
    <#<Test::Unit::TestSuite:0x404150d4 @tests=[#<#Class:0x40417294:0x4041500c @test_passed=true, @method_name=“test_1”>,
    #<#Class:0x40417294:0x40414fbc @test_passed=true, @method_name=“test_2”>, #<#Class:0x40417230:0x40414f80 @test_passed=true,
    @method_name=“test_3”>], @name=“collected from the ObjectSpace”>> expected but was
    <#<Test::Unit::TestSuite:0x40414d78 @tests=[#<#Class:0x40417294:0x40413aa4 @test_passed=true, @method_name=“test_2”>,
    #<#Class:0x40417294:0x4041398c @test_passed=true, @method_name=“test_1”>, #<#Class:0x40417230:0x40412ff0 @test_passed=true,
    @method_name=“test_3”>], @name=“collected from the ObjectSpace”>>

I just wanted to let you know that I have seen this and am looking in to it;
fixing it is a bit of a challenge. Thanks for the failure report, especially
since I never would have found it myself - it always passes on my machine.

Thanks,

Nathaniel

<:((><

···

NAKAMURA, Hiroshi [mailto:nakahiro@sarion.co.jp] wrote:

Test test/testunit/collector/test_objectspace.rb in the CVS
gives following 2 errors. It seems that test_objectspace.rb
depends order of Hash#each. There are several ways to reduce
this error and I could not find “the only way” so I reported
here without patch. Nathaniel?