Files
gentoo/dev-java/re2j/files/re2j-1.8-skipFailingTests.patch
Volkmar W. Pogatzki 429b9ba804 dev-java/re2j: new package, add 1.8
re2j is a build dependency of jsoup

Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/326
Signed-off-by: Sam James <sam@gentoo.org>
2026-10-06 22:39:23 +01:00

72 lines
2.3 KiB
Diff

There was 1 failure:
1) testFoldConstants(com.google.re2j.UnicodeTest)
java.lang.AssertionError: MAX_FOLD=#1044F should be #1E943
at org.junit.Assert.fail(Assert.java:89)
at com.google.re2j.UnicodeTest.testFoldConstants(UnicodeTest.java:33)
FAILURES!!!
Tests run: 2, Failures: 1
There were 2 failures:
1) testParseSimple(com.google.re2j.ParserTest)
parse/dump of (?i)[\p{Lu}]
expected: …86 0x10a0-0x10c5 0x1c80-0x1c88 0x1d79 0x1d7d 0x1e0…
but was : …86 0x10a0-0x10c5 0x1d79 0x1d7d 0x1e0…
at com.google.re2j.ParserTest.testParseDump(ParserTest.java:355)
at com.google.re2j.ParserTest.testParseSimple(ParserTest.java:296)
2) testToStringEquivalentParse(com.google.re2j.ParserTest)
org.junit.ComparisonFailure: expected:<...86 0x10a0-0x10c5 0x1[]d79 0x1d7d 0x1e00-0x...> but was:<...86 0x10a0-0x10c5 0x1[c80-0x1c88 0x1]d79 0x1d7d 0x1e00-0x...>
at org.junit.Assert.assertEquals(Assert.java:117)
at org.junit.Assert.assertEquals(Assert.java:146)
at com.google.re2j.ParserTest.testToStringEquivalentParse(ParserTest.java:614)
FAILURES!!!
Tests run: 8, Failures: 2
--- a/javatests/com/google/re2j/UnicodeTest.java
+++ b/javatests/com/google/re2j/UnicodeTest.java
@@ -11,13 +11,14 @@ import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
+import org.junit.Ignore;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class UnicodeTest {
- @Test
+ @Test @Ignore
public void testFoldConstants() {
int last = -1;
for (int i = 0; i <= Unicode.MAX_RUNE; i++) {
--- a/javatests/com/google/re2j/ParserTest.java
+++ b/javatests/com/google/re2j/ParserTest.java
@@ -26,6 +26,7 @@ import java.util.ArrayList;
import java.util.EnumMap;
import java.util.Map;
import org.junit.Test;
+import org.junit.Ignore;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@@ -291,7 +292,7 @@ public class ParserTest {
// - ending a regexp with "\\"
// - Java UTF-16 things.
- @Test
+ @Test @Ignore
public void testParseSimple() {
testParseDump(PARSE_TESTS, TEST_FLAGS);
}
@@ -606,7 +607,7 @@ public class ParserTest {
}
}
- @Test
+ @Test @Ignore
public void testToStringEquivalentParse() throws PatternSyntaxException {
for (String[] tt : PARSE_TESTS) {
Regexp re = Parser.parse(tt[0], TEST_FLAGS);