Skip to content

Commit c3cc872

Browse files
Merge pull request #678 from allredj/testgen-string-solver-dev-1-regression
String regression test restructuration
2 parents 3eeb73d + c7691a4 commit c3cc872

File tree

339 files changed

+1402
-738
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

339 files changed

+1402
-738
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
test:
3+
@../test.pl -c ../../../src/cbmc/cbmc
4+
5+
testfuture:
6+
@../test.pl -c ../../../src/cbmc/cbmc -CF
7+
8+
testall:
9+
@../test.pl -c ../../../src/cbmc/cbmc -CFTK
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FUTURE
2+
test_append_char.class
3+
--refine-strings
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
Binary file not shown.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
public class test_append_char
2+
{
3+
public static void main(/*String[] args*/)
4+
{
5+
char[] diff = {'d', 'i', 'f', 'f'};
6+
char[] blue = {'b', 'l', 'u', 'e'};
7+
8+
StringBuilder buffer = new StringBuilder();
9+
10+
buffer.append(diff)
11+
.append(blue);
12+
13+
String tmp=buffer.toString();
14+
System.out.println(tmp);
15+
assert tmp.equals("diffblue");
16+
}
17+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FUTURE
2+
test_append_int.class
3+
--refine-strings
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
public class test_append_int
2+
{
3+
public static void main(/*String[] args*/)
4+
{
5+
StringBuilder diffblue = new StringBuilder();
6+
diffblue.append("d");
7+
diffblue.append(4);
8+
String s = diffblue.toString();
9+
assert s.equals("d4");
10+
}
11+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FUTURE
2+
test_append_object.class
3+
--refine-strings
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
Binary file not shown.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
public class test_append_object
2+
{
3+
public static void main(/*String[] args*/)
4+
{
5+
Object diff = "diff";
6+
Object blue = "blue";
7+
8+
StringBuilder buffer = new StringBuilder();
9+
10+
buffer.append(diff)
11+
.append(blue);
12+
13+
String tmp=buffer.toString();
14+
System.out.println(tmp);
15+
assert tmp.equals("diffblue");
16+
}
17+
}

0 commit comments

Comments
 (0)