Skip to content

Commit

Permalink
Test remove(Int) and remove(Int, Int) separately
Browse files Browse the repository at this point in the history
as suggested here:
scala#9249 (comment)

Co-authored-by: Diego E. Alonso Blas <diesalbla@gmail.com>
  • Loading branch information
mshibuya and diesalbla committed Oct 21, 2020
1 parent 84aed73 commit d47ea5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/junit/scala/collection/mutable/ArrayBufferTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ class ArrayBufferTest {
iiobe( newAB.update(-1, 'u'), "-1 is out of bounds (min 0, max 2)" )
iiobe( newAB.update(3, 'u'), "3 is out of bounds (min 0, max 2)" )
iiobe( newAB(3), "3 is out of bounds (min 0, max 2)" )
iiobe( newAB.remove(3), "3 is out of bounds (min 0, max 2)" )
iiobe( newAB.remove(2, 2), "3 is out of bounds (min 0, max 2)" )
}
}

0 comments on commit d47ea5b

Please sign in to comment.