summaryrefslogtreecommitdiff
path: root/test/ruby/test_lazy_enumerator.rb
diff options
context:
space:
mode:
authorheadius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-10 20:02:47 +0000
committerheadius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-10 20:02:47 +0000
commit11125bf46aac1099912133d84e304eefd5a8f841 (patch)
tree7a3d0f77c72a4d57b41780301a29700aeb967873 /test/ruby/test_lazy_enumerator.rb
parentcbd15bdb95e6d9825a2ef8f08d2d6ed62d4ec9e1 (diff)
downloadruby-11125bf46aac1099912133d84e304eefd5a8f841.tar.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_lazy_enumerator.rb')
-rw-r--r--test/ruby/test_lazy_enumerator.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_lazy_enumerator.rb b/test/ruby/test_lazy_enumerator.rb
index 75f26f29b7..e8ce7c295f 100644
--- a/test/ruby/test_lazy_enumerator.rb
+++ b/test/ruby/test_lazy_enumerator.rb
@@ -322,11 +322,11 @@ class TestLazyEnumerator < Test::Unit::TestCase
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