aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_lazy_enumerator.rb
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-14 01:19:12 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-14 01:19:12 +0000
commit62e67609b694000cfdb5b80152d3c48a90cfb79b (patch)
tree292ccf44d20a323756f2e264e273a2448efcb8a1 /test/ruby/test_lazy_enumerator.rb
parent1f4c792072b0f53d084abe7601ef5e371b4a1019 (diff)
downloadruby-62e67609b694000cfdb5b80152d3c48a90cfb79b.tar.gz
* enumerator.c: Fix size for Enumerator::Lazy#flat_map
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_lazy_enumerator.rb')
-rw-r--r--test/ruby/test_lazy_enumerator.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_lazy_enumerator.rb b/test/ruby/test_lazy_enumerator.rb
index 232e0fed3a..7576c942a5 100644
--- a/test/ruby/test_lazy_enumerator.rb
+++ b/test/ruby/test_lazy_enumerator.rb
@@ -329,11 +329,11 @@ EOS
lazy = [1, 2, 3].lazy
assert_equal 3, lazy.size
assert_equal 42, Enumerator.new(42){}.lazy.size
- %i[map collect flat_map collect_concat].each do |m|
+ %i[map collect].each do |m|
assert_equal 3, lazy.send(m){}.size
end
assert_equal 3, lazy.zip([4]).size
- %i[select find_all reject take_while drop_while].each do |m|
+ %i[flat_map collect_concat select find_all reject take_while drop_while].each do |m|
assert_equal nil, lazy.send(m){}.size
end
assert_equal nil, lazy.grep(//).size