mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enumerator.c (InitVM_Enumerator): renamed Enumerable::Lazy to
Enumerator::Lazy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4a1db362f0
commit
ff1f6107f9
3 changed files with 7 additions and 2 deletions
|
@ -19,7 +19,7 @@ class TestLazyEnumerator < Test::Unit::TestCase
|
|||
|
||||
def test_initialize
|
||||
assert_equal([1, 2, 3], [1, 2, 3].lazy.to_a)
|
||||
assert_equal([1, 2, 3], Enumerable::Lazy.new([1, 2, 3]).to_a)
|
||||
assert_equal([1, 2, 3], Enumerator::Lazy.new([1, 2, 3]).to_a)
|
||||
end
|
||||
|
||||
def test_each_args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue