Merge pull request #120 from dscho/look-behind-test

Fix the look-behind test for OpenJDK
This commit is contained in:
Joshua Warner 2013-12-06 12:19:43 -08:00
commit 39e3850ed8

View File

@ -70,7 +70,7 @@ public class Regex {
expectGroups("a|(b|c)", "a", (String)null);
expectGroups("a|(b|c)", "c", "c");
expectGroups("(?=a)a", "a");
expectGroups(".*(o)(?<=[A-Z][a-z]*)", "Hello", "o");
expectGroups(".*(o)(?<=[A-Z][a-z]{1,4})", "Hello", "o");
expectNoMatch("(?!a).", "a");
expectMatch("[\\d]", "0");
expectMatch("\\0777", "?7");