mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove a duplicate test
This commit is contained in:
parent
16729f6430
commit
38ccb8f747
1 changed files with 0 additions and 8 deletions
|
@ -116,14 +116,6 @@ class TestLazyEnumerator < Test::Unit::TestCase
|
||||||
assert_equal(expected, a.lazy.map {|*args| args}.map {|*args| args}.to_a, bug)
|
assert_equal(expected, a.lazy.map {|*args| args}.map {|*args| args}.to_a, bug)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_filter_map
|
|
||||||
a = Step.new(1..3)
|
|
||||||
assert_equal(2, a.filter_map {|x| x.odd? && x * 2}.first)
|
|
||||||
assert_equal(3, a.current)
|
|
||||||
assert_equal(2, a.lazy.filter_map {|x| x.odd? && x * 2}.first)
|
|
||||||
assert_equal(1, a.current)
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_flat_map
|
def test_flat_map
|
||||||
a = Step.new(1..3)
|
a = Step.new(1..3)
|
||||||
assert_equal(2, a.flat_map {|x| [x * 2]}.first)
|
assert_equal(2, a.flat_map {|x| [x * 2]}.first)
|
||||||
|
|
Loading…
Reference in a new issue