mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Remove tests that don't pass in JDK 11
This commit is contained in:
parent
8a45dc300c
commit
1b23c9194b
|
@ -813,13 +813,6 @@ public class VectorTest {
|
||||||
// Excepted
|
// Excepted
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
|
||||||
myVector.removeRange(1, 0);
|
|
||||||
fail("Should throw IndexOutOfBoundsException");
|
|
||||||
} catch (IndexOutOfBoundsException e) {
|
|
||||||
// Excepted
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
myVector.removeRange(2, 1);
|
myVector.removeRange(2, 1);
|
||||||
fail("Should throw IndexOutOfBoundsException");
|
fail("Should throw IndexOutOfBoundsException");
|
||||||
|
|
|
@ -474,14 +474,12 @@ public class PatternTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCompileRanges() {
|
public void testCompileRanges() {
|
||||||
String[] correctTestPatterns = { "[^]*abb]*", "[^a-d[^m-p]]*abb",
|
String[] correctTestPatterns = { "[^]*abb]*",
|
||||||
"[a-d\\d]*abb", "[abc]*abb", "[a-e&&[de]]*abb", "[^abc]*abb",
|
"[a-d\\d]*abb", "[a-z&&[^m-p]]*abb", "[a-d[m-p]]*abb",
|
||||||
"[a-e&&[^de]]*abb", "[a-z&&[^m-p]]*abb", "[a-d[m-p]]*abb",
|
|
||||||
"[a-zA-Z]*abb", "[+*?]*abb", "[^+*?]*abb" };
|
"[a-zA-Z]*abb", "[+*?]*abb", "[^+*?]*abb" };
|
||||||
|
|
||||||
String[] inputSecuence = { "kkkk", "admpabb", "abcabcd124654abb",
|
String[] inputSecuence = { "kkkk", "abcabcd124654abb",
|
||||||
"abcabccbacababb", "dededededededeedabb", "gfdhfghgdfghabb",
|
"acbvfgtyabb", "adbcacdbmopabcoabb",
|
||||||
"accabacbcbaabb", "acbvfgtyabb", "adbcacdbmopabcoabb",
|
|
||||||
"jhfkjhaSDFGHJkdfhHNJMjkhfabb", "+*??+*abb", "sdfghjkabb" };
|
"jhfkjhaSDFGHJkdfhHNJMjkhfabb", "+*??+*abb", "sdfghjkabb" };
|
||||||
|
|
||||||
for (int i = 0; i < correctTestPatterns.length; i++) {
|
for (int i = 0; i < correctTestPatterns.length; i++) {
|
||||||
|
@ -490,9 +488,8 @@ public class PatternTest {
|
||||||
inputSecuence[i]));
|
inputSecuence[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] wrongInputSecuence = { "]", "admpkk", "abcabcd124k654abb",
|
String[] wrongInputSecuence = { "]", "abcabcd124k654abb",
|
||||||
"abwcabccbacababb", "abababdeababdeabb", "abcabcacbacbabb",
|
"acbotyabb", "adbcaecdbmopabcoabb",
|
||||||
"acdcbecbaabb", "acbotyabb", "adbcaecdbmopabcoabb",
|
|
||||||
"jhfkjhaSDFGHJk;dfhHNJMjkhfabb", "+*?a?+*abb", "sdf+ghjkabb" };
|
"jhfkjhaSDFGHJk;dfhHNJMjkhfabb", "+*?a?+*abb", "sdf+ghjkabb" };
|
||||||
|
|
||||||
for (int i = 0; i < correctTestPatterns.length; i++) {
|
for (int i = 0; i < correctTestPatterns.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user