ruby-changes:27659
From: headius <ko1@a...>
Date: Mon, 11 Mar 2013 05:02:58 +0900 (JST)
Subject: [ruby-changes:27659] headius:r39711 (trunk):
headius 2013-03-11 05:02:47 +0900 (Mon, 11 Mar 2013) New Revision: 39711 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39711 Log: Modified files: trunk/test/ruby/test_lazy_enumerator.rb Index: test/ruby/test_lazy_enumerator.rb =================================================================== --- test/ruby/test_lazy_enumerator.rb (revision 39710) +++ test/ruby/test_lazy_enumerator.rb (revision 39711) @@ -322,11 +322,11 @@ class TestLazyEnumerator < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_lazy_enumerator.rb#L322 def test_drop_while a = Step.new(1..10) - assert_equal(5, a.drop_while {|i| i < 5}.first) + assert_equal(5, a.drop_while {|i| i % 5 > 0}.first) assert_equal(10, a.current) - assert_equal(5, a.lazy.drop_while {|i| i < 5}.first) + assert_equal(5, a.lazy.drop_while {|i| i % 5 > 0}.first) assert_equal(5, a.current) - assert_equal((5..10).to_a, a.lazy.drop_while {|i| i < 5}.to_a) + assert_equal((5..10).to_a, a.lazy.drop_while {|i| i % 5 > 0}.to_a) end def test_drop_and_take -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/