diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-20 19:00:27 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-20 19:00:27 +0000 |
commit | 34727edaa3b282c437fbfa227deca4bd7a6c0c89 (patch) | |
tree | 92ed404d7f5581504aeb463638dabff21f0fcbee /test | |
parent | 5791afc9fe42e0bbfb6fc96dbf7fdb68a79fd2af (diff) | |
download | ruby-34727edaa3b282c437fbfa227deca4bd7a6c0c89.tar.gz ruby-34727edaa3b282c437fbfa227deca4bd7a6c0c89.tar.xz ruby-34727edaa3b282c437fbfa227deca4bd7a6c0c89.zip |
* test_enumerator.rb (enum_test): fix to return sorted
array (for Hash test).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_enumerator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb index 6ff8f8201..60864258c 100644 --- a/test/ruby/test_enumerator.rb +++ b/test/ruby/test_enumerator.rb @@ -5,7 +5,7 @@ class TestEnumerator < Test::Unit::TestCase i = 0
obj.map{|e|
[i+=1, e]
- }
+ }.sort
end
def test_iterators
|