summaryrefslogtreecommitdiff
path: root/test/files/run/t6634.check
diff options
context:
space:
mode:
authorRex Kerr <ichoran@gmail.com>2014-11-28 19:24:02 -0800
committerRex Kerr <ichoran@gmail.com>2015-07-19 13:58:50 -0700
commit23203f72c763ac847de763573731310989e84b2a (patch)
treef4be90db72a10878fac591a5b370aa6a39c810e4 /test/files/run/t6634.check
parent8f0c4b42617903ef974e25ff45250a34e93f40e7 (diff)
downloadscala-23203f72c763ac847de763573731310989e84b2a.tar.gz
scala-23203f72c763ac847de763573731310989e84b2a.tar.bz2
scala-23203f72c763ac847de763573731310989e84b2a.zip
SI-8554 Two-arg remove throws exception on large count
ListBuffer now throws exceptions like other buffers do when trying to index out of range. Also harmonized the order of testing (`count < 0` tested before `n` in range). Test in scala-collection-laws (gated by SI8554 flag). Also modified test in run/t6634.scala
Diffstat (limited to 'test/files/run/t6634.check')
-rw-r--r--test/files/run/t6634.check6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/files/run/t6634.check b/test/files/run/t6634.check
index f6cbb30c67..b085f397e6 100644
--- a/test/files/run/t6634.check
+++ b/test/files/run/t6634.check
@@ -4,27 +4,31 @@ String OK.
Length OK.
Trying lb1 ...
+java.lang.IndexOutOfBoundsException: at 6 deleting 6
Checking ...
String OK.
Length OK.
Trying lb2 ...
+java.lang.IndexOutOfBoundsException: at 99 deleting 6
Checking ...
String OK.
Length OK.
Trying lb3 ...
+java.lang.IndexOutOfBoundsException: at 1 deleting 9
Checking ...
String OK.
Length OK.
Trying lb4 ...
+java.lang.IndexOutOfBoundsException: at -1 deleting 1
Checking ...
String OK.
Length OK.
Trying lb5 ...
-java.lang.IllegalArgumentException: removing negative number (-1) of elements
+java.lang.IllegalArgumentException: removing negative number of elements: -1
Checking ...
String OK.
Length OK.