Skip to content

Commit 3c697da

Browse files
Add test where tmp_if_expr is introduced
This checks the ID_mode fix for if_expr in preprocessing works correctly.
1 parent 746e337 commit 3c697da

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed
672 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
public class Test {
2+
3+
public static boolean test(char c1, char c2, char c3, char c4, char c5, char c6, char c7, char c8) {
4+
StringBuilder sb = new StringBuilder("");
5+
sb.append(c1);
6+
sb.append(c2);
7+
sb.append(c3);
8+
sb.append(c4);
9+
sb.append(c5);
10+
sb.append(c6);
11+
sb.append(c7);
12+
sb.append(c8);
13+
if (sb.toString().equals("\b\t\n\f\r\"\'\\"))
14+
return true;
15+
if (!sb.toString().equals("\b\t\n\f\r\"\'\\"))
16+
return false;
17+
return true;
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CORE
2+
Test.class
3+
--refine-strings --function Test.test --cover location --trace --json-ui
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
20 of 23 covered \(87.0%\)|30 of 44 covered \(68.2%\)

0 commit comments

Comments
 (0)