Skip to content

Commit a7fc2bc

Browse files
committed
disable three regex tests
1 parent c389c10 commit a7fc2bc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

regex/src/com.oracle.truffle.regex.test/src/com/oracle/truffle/regex/tregex/test/JsTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,9 @@ public void generatedTests() {
460460
test("a(?<=ba)", "", "ba", 0, true, 1, 2);
461461
test("(?<=(?=|()))", "", "aa", 0, true, 0, 0, -1, -1);
462462
test("\\d\\W", "iv", "4\u017f", 0, false);
463-
test("[\u08bc-\ucf3a]", "iv", "\u03b0", 0, true, 0, 1);
464-
test("[\u0450-\u6c50]\u7e57\u55ad()\u64e7\\d|", "iu", "\u03b0\u7e57\u55ad\u64e79", 0, true, 0, 5, 3, 3);
463+
// Requires case-fold mappings update: TRegex: update unicode version to 16.0.0 for JS flavor
464+
// test("[\u08bc-\ucf3a]", "iv", "\u03b0", 0, true, 0, 1);
465+
// test("[\u0450-\u6c50]\u7e57\u55ad()\u64e7\\d|", "iu", "\u03b0\u7e57\u55ad\u64e79", 0, true, 0, 5, 3, 3);
465466
test("a(?:|()\\1){1,2}", "", "a", 0, true, 0, 1, -1, -1);
466467
expectSyntaxError("|(?<\\d\\1)\ub7e4", "", "", getTRegexEncoding(), "error", 0, ErrorCode.InvalidNamedGroup);
467468
test("[a-z][a-z\u2028\u2029].|ab(?<=[a-z]w.)", "", "aac", 0, true, 0, 3);

regex/src/com.oracle.truffle.regex.test/src/com/oracle/truffle/regex/tregex/test/OracleDBTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,8 @@ public void generatedTests() {
14101410
test("a([bc]|()\\1|\\2){27,222}?", "", "abcbbc", 0, true, 0, 6, 6, 6, 4, 4);
14111411
test("((a)\\2){4,10}", "", "aaaaaaaa", 0, true, 0, 8, 6, 8, 6, 7);
14121412
test("()\\1(|b){2,2}?c", "", "bc", 0, true, 0, 2, 0, 0, 1, 1);
1413-
test("\u0282\\\ud807\udfdd+\u1cf2", "", "\u0282\ud807\udfdd\ud807\udfdd\u1cf2", 0, true, 0, 13);
1413+
// requires update: TRegex: fix OracleDB flavor incorrectly parsing escaped surrogate pairs
1414+
// test("\u0282\\\ud807\udfdd+\u1cf2", "", "\u0282\ud807\udfdd\ud807\udfdd\u1cf2", 0, true, 0, 13);
14141415
test("((A|){7,10}?){10,17}", "", "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", 0, true, 0, 86, 86, 86, 86, 86);
14151416
test("(a{1,30}){1,4}", "", "a", 0, true, 0, 1, 0, 1);
14161417
test("((a|){4,6}){4,6}", "", "aaaaaaa", 0, true, 0, 7, 7, 7, 7, 7);

0 commit comments

Comments
 (0)