T
Thomas E Enebo
I am working on the JRuby project and I was running some of the tests
in samples/test.rb from main ruby-1.8.1 source. I ran across something
which seems like a bug to me (in the test). It is something like:
$y = {1, 2, 2, 4, 3, 6}
test_ok($y.keys, [1,2,3])
test_ok($y.values, [2,4,6])
Does ruby Maps really return keys and values in order of insertion?
That seems strange to me. Seems like the tests are missing a sort.
-Tom
in samples/test.rb from main ruby-1.8.1 source. I ran across something
which seems like a bug to me (in the test). It is something like:
$y = {1, 2, 2, 4, 3, 6}
test_ok($y.keys, [1,2,3])
test_ok($y.values, [2,4,6])
Does ruby Maps really return keys and values in order of insertion?
That seems strange to me. Seems like the tests are missing a sort.
-Tom