From: Thomas E Enebo Date: 2005-02-09T03:03:38+09:00 Subject: Map keys and values behavior 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 -- + http://www.tc.umn.edu/~enebo +---- mailto:enebo@acm.org ----+ | Thomas E Enebo, Protagonist | "A word is worth a thousand | | | pictures" -Bruce Tognazzini |1