File tree 3 files changed +18
-0
lines changed
regression/strings/StringIndexMethods04
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1
1
public class StringIndexMethods04
2
2
{
3
3
public static void main (String [] args )
4
+ {
5
+ String letters = "onatdiffblue" ;
6
+ assert letters .indexOf ("diffblue" )==2 ;
7
+ }
8
+
9
+ public static void mainBug (String [] args )
4
10
{
5
11
String letters = "automatictestcasegenerationatdiffblue" ;
6
12
assert letters .indexOf ("diffblue" )==28 ;
Original file line number Diff line number Diff line change
1
+ KNOWNBUG
2
+ StringIndexMethods04.class
3
+ --refine-strings --string-max-length 1000 --function StringIndexMethods04.mainBug
4
+ ^EXIT=10$
5
+ ^SIGNAL=0$
6
+ ^\[.*assertion\.1\] .* line 6 .* FAILURE$
7
+ ^VERIFICATION FAILED$
8
+ --
9
+ ^warning: ignoring
10
+ --
11
+ This test can randomly fail because the solver does not come up with the right
12
+ model on the first iteration and the constraint instatiation adds too many things.
You can’t perform that action at this time.
0 commit comments