RFR: 8271302: Regex Test Refresh
Brent Christian
bchristi at openjdk.java.net
Fri Aug 13 20:22:28 UTC 2021
On Wed, 11 Aug 2021 18:22:42 GMT, Ian Graves <igraves at openjdk.org> wrote:
> 8271302: Regex Test Refresh
Changes requested by bchristi (Reviewer).
In the JBS issue, it looks like the Description was put in the Environment. :)
test/jdk/java/util/regex/RegExTest.java line 291:
> 289:
> 290: int resultStart1 = mr.start();
> 291: assertEquals(matcherStart1, resultStart1, "equal matchers have equal start indices");
Should the message be that they *don't* have equal start indices ?
test/jdk/java/util/regex/RegExTest.java line 2362:
> 2360:
> 2361: { "test\ud834\uddc0", "test\ud834\uddc0", "m", true },
> 2362: //{ "test\ud834\uddbc\ud834\udd6f", "test\ud834\uddc0", "m", true }, //problem
Should an issue be filed for these //problems ?
test/jdk/java/util/regex/RegExTest.java line 3952:
> 3950:
> 3951: m = Pattern.compile("\\H").matcher(matcherSubstring);
> 3952: assertTrue(m.find() || ng.equals(m.group()));
Should this be:
`assertTrue(m.find() && ng.equals(m.group()));`
-------------
PR: https://git.openjdk.java.net/jdk/pull/5092
More information about the core-libs-dev
mailing list