From 1b23c9194b3885c4dc53cfca441dfb96ec06d3a9 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sat, 27 Apr 2019 14:07:02 +0300 Subject: [PATCH] Remove tests that don't pass in JDK 11 --- .../org/teavm/classlib/java/util/VectorTest.java | 7 ------- .../classlib/java/util/regex/PatternTest.java | 15 ++++++--------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/tests/src/test/java/org/teavm/classlib/java/util/VectorTest.java b/tests/src/test/java/org/teavm/classlib/java/util/VectorTest.java index 255e5b6ed..ae7531498 100644 --- a/tests/src/test/java/org/teavm/classlib/java/util/VectorTest.java +++ b/tests/src/test/java/org/teavm/classlib/java/util/VectorTest.java @@ -813,13 +813,6 @@ public class VectorTest { // Excepted } - try { - myVector.removeRange(1, 0); - fail("Should throw IndexOutOfBoundsException"); - } catch (IndexOutOfBoundsException e) { - // Excepted - } - try { myVector.removeRange(2, 1); fail("Should throw IndexOutOfBoundsException"); diff --git a/tests/src/test/java/org/teavm/classlib/java/util/regex/PatternTest.java b/tests/src/test/java/org/teavm/classlib/java/util/regex/PatternTest.java index 601226285..64f98791c 100644 --- a/tests/src/test/java/org/teavm/classlib/java/util/regex/PatternTest.java +++ b/tests/src/test/java/org/teavm/classlib/java/util/regex/PatternTest.java @@ -474,14 +474,12 @@ public class PatternTest { @Test public void testCompileRanges() { - String[] correctTestPatterns = { "[^]*abb]*", "[^a-d[^m-p]]*abb", - "[a-d\\d]*abb", "[abc]*abb", "[a-e&&[de]]*abb", "[^abc]*abb", - "[a-e&&[^de]]*abb", "[a-z&&[^m-p]]*abb", "[a-d[m-p]]*abb", + String[] correctTestPatterns = { "[^]*abb]*", + "[a-d\\d]*abb", "[a-z&&[^m-p]]*abb", "[a-d[m-p]]*abb", "[a-zA-Z]*abb", "[+*?]*abb", "[^+*?]*abb" }; - String[] inputSecuence = { "kkkk", "admpabb", "abcabcd124654abb", - "abcabccbacababb", "dededededededeedabb", "gfdhfghgdfghabb", - "accabacbcbaabb", "acbvfgtyabb", "adbcacdbmopabcoabb", + String[] inputSecuence = { "kkkk", "abcabcd124654abb", + "acbvfgtyabb", "adbcacdbmopabcoabb", "jhfkjhaSDFGHJkdfhHNJMjkhfabb", "+*??+*abb", "sdfghjkabb" }; for (int i = 0; i < correctTestPatterns.length; i++) { @@ -490,9 +488,8 @@ public class PatternTest { inputSecuence[i])); } - String[] wrongInputSecuence = { "]", "admpkk", "abcabcd124k654abb", - "abwcabccbacababb", "abababdeababdeabb", "abcabcacbacbabb", - "acdcbecbaabb", "acbotyabb", "adbcaecdbmopabcoabb", + String[] wrongInputSecuence = { "]", "abcabcd124k654abb", + "acbotyabb", "adbcaecdbmopabcoabb", "jhfkjhaSDFGHJk;dfhHNJMjkhfabb", "+*?a?+*abb", "sdf+ghjkabb" }; for (int i = 0; i < correctTestPatterns.length; i++) {