File tree 3 files changed +7
-7
lines changed
regression/strings-smoke-tests/java_if
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ test.class
3
3
--refine-strings --string-max-length 100
4
4
^EXIT=10$
5
5
^SIGNAL=0$
6
- ^\[.*assertion.1\].* line 13 .* SUCCESS$
7
- ^\[.*assertion.2\].* line 15 .* FAILURE$
6
+ ^\[.*assertion.1\].* line 11 .* SUCCESS$
7
+ ^\[.*assertion.2\].* line 13 .* FAILURE$
8
8
--
9
9
$ignoring\s*char\s*array
Original file line number Diff line number Diff line change 1
1
public class test
2
2
{
3
- public static String main ()
3
+ public static String main (int i )
4
4
{
5
5
Object t [] = new Object [5 ];
6
6
t [0 ] = "world!" ;
7
7
StringBuilder s = new StringBuilder ("Hello " );
8
8
if (t [0 ] instanceof String )
9
- {
10
9
s .append ((String ) t [0 ]);
11
- }
12
- assert (s .toString ().equals ("Hello world!" ));
13
- assert (!s .toString ().equals ("Hello world!" ));
10
+ if (i == 0 )
11
+ assert (s .toString ().equals ("Hello world!" ));
12
+ else
13
+ assert (!s .toString ().equals ("Hello world!" ));
14
14
return s .toString ();
15
15
}
16
16
}
You can’t perform that action at this time.
0 commit comments