1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Removing duplicated assertions on test_array.rb - MINUS method

Closes: https://github.com/ruby/ruby/pull/1790
This commit is contained in:
Espartaco Palma 2018-10-13 22:36:57 -07:00 committed by Hiroshi SHIBATA
parent 4f1a00a746
commit 146cf2f444
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -265,10 +265,6 @@ class TestArray < Test::Unit::TestCase
assert_equal(@cls[], @cls[1] - @cls[1])
assert_equal(@cls[1], @cls[1, 2, 3, 4, 5] - @cls[2, 3, 4, 5])
assert_equal(@cls[1, 1, 1, 1], @cls[1, 2, 1, 3, 1, 4, 1, 5] - @cls[2, 3, 4, 5])
a = @cls[]
1000.times { a << 1 }
assert_equal(1000, a.length)
assert_equal(@cls[1] * 1000, a - @cls[2])
assert_equal(@cls[1, 1], @cls[1, 2, 1] - @cls[2])
assert_equal(@cls[1, 2, 3], @cls[1, 2, 3] - @cls[4, 5, 6])
end