File tree 6 files changed +27
-2
lines changed
regression/strings-smoke-tests
6 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 1
1
CORE
2
2
test_length.class
3
3
--refine-strings
4
- ^EXIT=0 $
4
+ ^EXIT=10 $
5
5
^SIGNAL=0$
6
- ^VERIFICATION SUCCESSFUL$
6
+ ^VERIFICATION FAILED$
7
+ [.*assertion.1] .* line 7 .*: SUCCESS
8
+ [.*assertion.2] .* line 8 .*: FAILURE
7
9
--
Original file line number Diff line number Diff line change @@ -5,5 +5,6 @@ public static void main(/*String[] argv*/)
5
5
String s = new String ("Abc" );
6
6
int l = s .length ();
7
7
assert (l == 3 );
8
+ assert (l != 3 );
8
9
}
9
10
}
Original file line number Diff line number Diff line change
1
+ FUTURE
2
+ test.class
3
+ --refine-strings --function test.check
4
+ ^EXIT=0$
5
+ ^SIGNAL=0$
6
+ ^VERIFICATION SUCCESSFUL$
7
+ --
8
+ This test currently fails because we do not handle the case where the argument
9
+ 's' is null. This should be handled in the String model.
10
+ The issue number for that is: diffblue/test-gen#500
Original file line number Diff line number Diff line change
1
+ public class test
2
+ {
3
+ public static int check (String s )
4
+ {
5
+ if (s .equals ("abc" )){
6
+ assert s .length () == 3 ;
7
+ return 0 ;
8
+ }
9
+ return 1 ;
10
+ }
11
+ }
12
+
You can’t perform that action at this time.
0 commit comments