File tree 3 files changed +10
-3
lines changed
regression/strings-smoke-tests/java_int_to_string
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
CORE
2
2
test_int.class
3
3
--refine-strings
4
- ^EXIT=0 $
4
+ ^EXIT=10 $
5
5
^SIGNAL=0$
6
- ^VERIFICATION SUCCESSFUL$
6
+ assertion.* file test_int.java line 6 .* SUCCESS$
7
+ assertion.* file test_int.java line 9 .* SUCCESS$
8
+ assertion.* file test_int.java line 11 .* FAILURE$
9
+ assertion.* file test_int.java line 13 .* FAILURE$
7
10
--
Original file line number Diff line number Diff line change 1
1
public class test_int
2
2
{
3
- public static void main (/*String[] argv*/ )
3
+ public static void main (int i )
4
4
{
5
5
String s = Integer .toString (12 );
6
6
assert (s .equals ("12" ));
7
7
String t = Integer .toString (-23 );
8
8
System .out .println (t );
9
9
assert (t .equals ("-23" ));
10
+ if (i ==1 )
11
+ assert (!s .equals ("12" ));
12
+ else if (i ==2 )
13
+ assert (!t .equals ("-23" ));
10
14
}
11
15
}
You can’t perform that action at this time.
0 commit comments