RFR: 8271302: Regex Test Refresh [v2]
Ian Graves
igraves at openjdk.java.net
Wed Aug 18 18:35:55 UTC 2021
On Fri, 13 Aug 2021 20:17:56 GMT, Brent Christian <bchristi at openjdk.org> wrote:
>> Ian Graves has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Couple of fixes
>
> 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()));`
Good catch. De Morgan's mistake
-------------
PR: https://git.openjdk.java.net/jdk/pull/5092
More information about the core-libs-dev
mailing list