mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
175c514a0d
commit
e537dc331e
1 changed files with 0 additions and 4 deletions
|
@ -660,10 +660,6 @@ class TestEnumerator < Test::Unit::TestCase
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue