Skip to content

Commit 621da87

Browse files
romainbrenguierLukasz A.J. Wrona
authored and
Lukasz A.J. Wrona
committed
Tests for new option string-max-input-length
1 parent 440d19f commit 621da87

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
public class Test {
2+
public static void main(String s) {
3+
// This prevent anything from happening if string-max-length is smaller
4+
// than 40
5+
String t = new String("0123456789012345678901234567890123456789");
6+
if (s.length() >= 30)
7+
// This should not happen when string-max-input length is smaller
8+
// than 30
9+
assert false;
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
Test.class
3+
--refine-strings --string-max-length 30
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
Test.class
3+
--refine-strings --string-max-length 45 --string-max-input-length 31
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^VERIFICATION FAILED$
7+
--
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
Test.class
3+
--refine-strings --string-max-length 45 --string-max-input-length 20
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--

0 commit comments

Comments
 (0)