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 | |
| 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
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | test/ruby/test_enumerator.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Aug 21 03:59:32 2007 Koichi Sasada <ko1@atdot.net> + + * test_enumerator.rb (enum_test): fix to return sorted + array (for Hash test). + Tue Aug 21 03:55:20 2007 Koichi Sasada <ko1@atdot.net> * enumerator.c (next_i): fix to return with Fiber#yield at 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
|
