Skip to content

Commit c7691a4

Browse files
author
Joel Allred
committed
Restructuration of tests on strings
Add test java_intern Adapt test.desc to new output format Make more robust java tests. Add test for parseint. Correction in the hacks to use refined strings in C programs Add smoke tests for java string support Quick set of tests. Created by modifying the existing development tests. Longer tests are run when using 'make testall'. Format of java files was adapted. No change to the validation tests (written by Lucas Cordeiro). Update smoke tests Add a series of performance tests that check that the negation of the assertions found in the smoke tests indeed fail. Update java_char_array_init/test_init.class Add first fixed_bugs test For bug #95 Update test description with new option name String refinement option name has changed to --refine-strings Formatting in cprover-string-hack.h Move smoke tests to regression folder. Move fixed bugs tests to strings folder Move string perfomance tests to strings directory These are not really performance tests, only tests that are longer than the smoke tests. Adapt Makefile for new location of smoke tests
1 parent a11a70b commit c7691a4

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+
--
999 Bytes
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+
--
842 Bytes
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+
--
992 Bytes
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)