Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8271302: Regex Test Refresh #5092

wants to merge 5 commits into from
Changes from 1 commit
File filter
Filter by extension
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -288,7 +288,7 @@ public static void toMatchResultTest() {
assertNotSame(mr, matcher, "Matcher toMatchResult is identical object");

int resultStart1 = mr.start();
assertEquals(matcherStart1, resultStart1, "equal matchers have equal start indices");
assertEquals(matcherStart1, resultStart1, "equal matchers don't have equal start indices");

int matcherStart2 = matcher.start();
@@ -3949,7 +3949,7 @@ public static void horizontalAndVerticalWSTest() {
String matcherSubstring = hws.substring(0, i) + ng + hws.substring(i);

m = Pattern.compile("\\H").matcher(matcherSubstring);
assertTrue(m.find() || ng.equals(;
assertTrue(m.find() && ng.equals(;
m = Pattern.compile("[\\H]").matcher(matcherSubstring);
assertTrue(m.find() && ng.equals(;