ruby-changes:56182
From: Shugo <ko1@a...>
Date: Fri, 21 Jun 2019 18:02:59 +0900 (JST)
Subject: [ruby-changes:56182] Shugo Maeda: 38ccb8f747 (trunk): Remove a duplicate test
https://git.ruby-lang.org/ruby.git/commit/?id=38ccb8f747 From 38ccb8f74753c6c3d3e47ab612691bd01148eb90 Mon Sep 17 00:00:00 2001 From: Shugo Maeda <shugo@r...> Date: Fri, 21 Jun 2019 18:02:24 +0900 Subject: Remove a duplicate test diff --git a/test/ruby/test_lazy_enumerator.rb b/test/ruby/test_lazy_enumerator.rb index 679e029..e76a53e 100644 --- a/test/ruby/test_lazy_enumerator.rb +++ b/test/ruby/test_lazy_enumerator.rb @@ -116,14 +116,6 @@ class TestLazyEnumerator < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_lazy_enumerator.rb#L116 assert_equal(expected, a.lazy.map {|*args| args}.map {|*args| args}.to_a, bug) 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 a = Step.new(1..3) assert_equal(2, a.flat_map {|x| [x * 2]}.first) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/