Skip to content

Commit bb31bb5

Browse files
committed
Added regression test for lastIndexOf
Added regression (smoke test) for usage of long strings with lastIndexOf to detect future performance degredations.
1 parent f5f122e commit bb31bb5

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
test_last_index_of2.class
3+
--refine-strings
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
public class test_last_index_of2
2+
{
3+
public static void main(String[] args)
4+
{
5+
String letters = "automatictestcasegenerationatdiffblue";
6+
assert(letters.lastIndexOf("diffblue", 25)==-1);
7+
}
8+
}

0 commit comments

Comments
 (0)