Skip to content

Commit fa45b34

Browse files
Regression test mprovement for if expressions
1 parent 76cd14d commit fa45b34

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
32 Bytes
Binary file not shown.

regression/strings-smoke-tests/java_if/test.desc

+2-2
Original file line numberDiff line numberDiff 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 numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
public 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
}

0 commit comments

Comments
 (0)