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

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
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");
matcher.find();

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(m.group()));
assertTrue(m.find() && ng.equals(m.group()));
m = Pattern.compile("[\\H]").matcher(matcherSubstring);
assertTrue(m.find() && ng.equals(m.group()));
}