ruby-changes:50587
From: nobu <ko1@a...>
Date: Tue, 13 Mar 2018 11:43:08 +0900 (JST)
Subject: [ruby-changes:50587] nobu:r62735 (trunk): test_enumerator.rb: duplicate assertions
nobu 2018-03-13 11:43:04 +0900 (Tue, 13 Mar 2018) New Revision: 62735 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62735 Log: test_enumerator.rb: duplicate assertions * test/ruby/test_enumerator.rb (test_uniq): remove assertions which ared duplicate of lazy enumerator tests in test_lazy_enumerator.rb. Modified files: trunk/test/ruby/test_enumerator.rb Index: test/ruby/test_enumerator.rb =================================================================== --- test/ruby/test_enumerator.rb (revision 62734) +++ test/ruby/test_enumerator.rb (revision 62735) @@ -660,10 +660,6 @@ class TestEnumerator < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/ruby/test_enumerator.rb#L660 u = [0, 1, 0, 1].to_enum.lazy.uniq assert_equal([0, 1], u.force) assert_equal([0, 1], u.force) - - u = (1..Float::INFINITY).lazy.uniq{|x| (x**2) % 10 } - assert_equal([1, 2, 3, 4, 5, 10], u.first(6)) - assert_equal([1, 2, 3, 4, 5, 10], u.first(6)) end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/