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
|
@ -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>
|
Tue Aug 21 03:55:20 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* enumerator.c (next_i): fix to return with Fiber#yield at
|
* enumerator.c (next_i): fix to return with Fiber#yield at
|
||||||
|
|
|
@ -5,7 +5,7 @@ class TestEnumerator < Test::Unit::TestCase
|
||||||
i = 0
|
i = 0
|
||||||
obj.map{|e|
|
obj.map{|e|
|
||||||
[i+=1, e]
|
[i+=1, e]
|
||||||
}
|
}.sort
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_iterators
|
def test_iterators
|
||||||
|
|
Loading…
Reference in a new issue