Skip to content

Commit 5138f7d

Browse files
Adding a test with an indexed argument in format
1 parent bf0c217 commit 5138f7d

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
Binary file not shown.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
test.class
3+
--refine-strings --string-max-length 20
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^\[.*assertion.1\].* line 7.* SUCCESS$
7+
^\[.*assertion.2\].* line 9.* FAILURE$
8+
--
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
public class test
2+
{
3+
public static String main(int i)
4+
{
5+
String s = String.format("%3$sar", "a", "r", "b");
6+
if(i==0)
7+
assert(s.equals("bar"));
8+
else
9+
assert(!s.equals("bar"));
10+
return s;
11+
}
12+
}

0 commit comments

Comments
 (0)