File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
regression/strings-smoke-tests/java_if Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ test.class
33--refine-strings --string-max-length 100
44^EXIT=10$
55^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$
88--
99$ignoring\s*char\s*array
Original file line number Diff line number Diff line change 11public class test
22{
3- public static String main ()
3+ public static String main (int i )
44 {
55 Object t [] = new Object [5 ];
66 t [0 ] = "world!" ;
77 StringBuilder s = new StringBuilder ("Hello " );
88 if (t [0 ] instanceof String )
9- {
109 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!" ));
1414 return s .toString ();
1515 }
1616}
You can’t perform that action at this time.
0 commit comments