Skip to content

Commit 9bc1a6e

Browse files
Antonia LechnerAntonia Lechner
Antonia Lechner
authored and
Antonia Lechner
committed
Add test for stubbed string constructor
1 parent 4024eee commit 9bc1a6e

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import java.lang.String;
2+
3+
public class Test {
4+
5+
public static void test() {
6+
char[] c1 = new char[] { 'j', 'a', 'v', 'a' };
7+
String s = new String (c1);
8+
assert s.charAt(0) == 'j';
9+
}
10+
11+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CORE
2+
Test.class
3+
--function Test.test --show-properties
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
--
8+
This test checks that for a stubbed String constructor in the method to verify
9+
(such a constructor will be stubbed if no model for String is loaded), we still
10+
generate properties for this method.
11+
Note that verification would fail in this case because we don't know the correct
12+
implementation of the constructor.

0 commit comments

Comments
 (0)