mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test_enumerator.rb (enum_test): fix to return sorted
array (for Hash test). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ad56f8c611
commit
2d3724e058
2 changed files with 6 additions and 1 deletions
|
@ -5,7 +5,7 @@ class TestEnumerator < Test::Unit::TestCase
|
|||
i = 0
|
||||
obj.map{|e|
|
||||
[i+=1, e]
|
||||
}
|
||||
}.sort
|
||||
end
|
||||
|
||||
def test_iterators
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue