Home
last modified time | relevance | path

Searched refs:testPattern (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/regex/
DOldMatcherTest.java63 String testPattern = "(abb)"; in test_resetLjava_lang_String() local
66 Pattern pat = Pattern.compile(testPattern); in test_resetLjava_lang_String()
112 String testPattern = "(abb)"; in test_reset() local
114 Pattern pat = Pattern.compile(testPattern); in test_reset()
123 String testPattern = "abb"; in test_hasAnchoringBounds() local
125 Pattern pat = Pattern.compile(testPattern); in test_hasAnchoringBounds()
141 String testPattern = "abb"; in test_hasTransparentBounds() local
143 Pattern pat = Pattern.compile(testPattern); in test_hasTransparentBounds()
159 String testPattern = "(((abb)a)(bb))"; in test_startI() local
161 Pattern pat = Pattern.compile(testPattern); in test_startI()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandlesTest.java966 final String testPattern = "The system as we know it is broken"; in testStringConstructors() local
977 s = (String) mh.invokeExact(testPattern); in testStringConstructors()
978 assertEquals(testPattern, s); in testStringConstructors()
984 s = (String) mh.invokeExact(testPattern.toCharArray()); in testStringConstructors()
985 assertEquals(testPattern, s); in testStringConstructors()
994 StringBuffer sb = new StringBuffer(testPattern); in testStringConstructors()
1002 assertEquals(testPattern, s); in testStringConstructors()
1005 byte [] ascii = testPattern.getBytes(StandardCharsets.US_ASCII); in testStringConstructors()
1009 assertEquals(testPattern, s); in testStringConstructors()
1016 assertEquals(testPattern.substring(0, 5), s); in testStringConstructors()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DMatcherTest.java164 public void testPattern() { in testPattern() method in MatcherTest
385 String testPattern = "(abb)"; in testFind() local
387 Pattern pat = Pattern.compile(testPattern); in testFind()
399 testPattern = "(\\d{1,3})"; in testFind()
402 Pattern pat2 = Pattern.compile(testPattern); in testFind()
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPatternTest.java249 public void testPattern() { in testPattern() method in PatternTest