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:
parent
4f1a00a746
commit
146cf2f444
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue