Skip to content

Commit bb28bf8

Browse files
committed
Add a regression test with Character type
1 parent 09724a8 commit bb28bf8

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-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+
public class Main {
2+
3+
public void constantIndexOf() {
4+
String s1 = "abcabc";
5+
Character b = 'b';
6+
assert s1.indexOf(b) == 1;
7+
assert s1.indexOf(b, -10) == 1;
8+
assert s1.indexOf(b, 3) == 4;
9+
assert s1.indexOf(b, 10) == -1;
10+
}
11+
}
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+
--

0 commit comments

Comments
 (0)