mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix test to follow r37838
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e58d0bd393
commit
1ab73afbf9
1 changed files with 2 additions and 2 deletions
|
@ -302,8 +302,8 @@ class TestLazyEnumerator < Test::Unit::TestCase
|
|||
assert_equal("#<Enumerator::Lazy: 1..10:cycle(2)>",
|
||||
Enumerator::Lazy.new(1..10, :cycle, 2).inspect)
|
||||
assert_equal("#<Enumerator::Lazy: 1..10>", (1..10).lazy.inspect)
|
||||
assert_equal('#<Enumerator::Lazy: #<Enumerator: "foo":chars>>',
|
||||
"foo".chars.lazy.inspect)
|
||||
assert_equal('#<Enumerator::Lazy: #<Enumerator: "foo":each_char>>',
|
||||
"foo".each_char.lazy.inspect)
|
||||
assert_equal("#<Enumerator::Lazy: #<Enumerator::Lazy: 1..10>:map>",
|
||||
(1..10).lazy.map {}.inspect)
|
||||
assert_equal("#<Enumerator::Lazy: #<Enumerator::Lazy: 1..10>:take(0)>",
|
||||
|
|
Loading…
Reference in a new issue