Skip to content

Commit ddf0358

Browse files
committed
Add a regression test with Character type
1 parent ae7ea83 commit ddf0358

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
public class Main {
2+
public void constantIndexOf() {
3+
String s1 = "abcabc";
4+
Character b = 'b';
5+
assert s1.indexOf(b) == 1;
6+
assert s1.indexOf(b, -10) == 1;
7+
assert s1.indexOf(b, 3) == 4;
8+
assert s1.indexOf(b, 10) == -1;
9+
}
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE symex-driven-lazy-loading-expected-failure
2+
Main.class
3+
--function Main.constantIndexOf --cp `../../../../scripts/format_classpath.sh . ../../../lib/java-models-library/target/core-models.jar`
4+
^Generated [0-9]+ VCC\(s\), 0 remaining after simplification$
5+
^VERIFICATION SUCCESSFUL$
6+
^EXIT=0$
7+
^SIGNAL=0$
8+
--
9+
--
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
KNOWNBUG symex-driven-lazy-loading-expected-failure
2+
Main.class
3+
--function Main.constantIndexOf
4+
^Generated [0-9]+ VCC\(s\), 0 remaining after simplification$
5+
^VERIFICATION SUCCESSFUL$
6+
^EXIT=0$
7+
^SIGNAL=0$
8+
--
9+
--
10+
This is tentatively set to KNOWNBUG as it will fail verification and root cause
11+
not yet found out why verification failed without models-library and with
12+
Character.

0 commit comments

Comments
 (0)