Searched refs:mat (Results 1 – 4 of 4) sorted by relevance
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | PatternTest.java | 296 Matcher mat = pat.matcher(testString); in testFlagsCase1() local 297 assertFalse(mat.matches()); in testFlagsCase1() 304 Matcher mat = pat.matcher(testString); in testFlagsCase2() local 305 assertTrue(mat.matches()); in testFlagsCase2() 312 Matcher mat = pat.matcher(testString); in testFlagsCase3() local 313 assertTrue(mat.matches()); in testFlagsCase3() 320 Matcher mat = pat.matcher(testString); in testFlagsCase4() local 321 assertTrue(mat.matches()); in testFlagsCase4() 328 Matcher mat = pat.matcher(testString); in testFlagsCase5() local 329 assertTrue(mat.matches()); in testFlagsCase5() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
D | OldMatcherTest.java | 67 Matcher mat = pat.matcher(testString1); in test_resetLjava_lang_String() local 69 while (mat.find()); in test_resetLjava_lang_String() 70 assertEquals("Reset should return itself 1", mat, mat.reset(testString2)); in test_resetLjava_lang_String() 71 assertFalse("After reset matcher should not find pattern in given input", mat.find()); in test_resetLjava_lang_String() 72 assertEquals("Reset should return itself 2", mat, mat.reset(testString1)); in test_resetLjava_lang_String() 73 assertTrue("After reset matcher should find pattern in given input", mat.find()); in test_resetLjava_lang_String() 115 Matcher mat = pat.matcher(testString); in test_reset() local 117 while (mat.find()); in test_reset() 118 assertEquals("Reset should return itself", mat, mat.reset()); in test_reset() 119 assertTrue("After reset matcher should find pattern in given input", mat.find()); in test_reset() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | MatcherTest.java | 106 Matcher mat = pat.matcher(input); in testReplaceAll() local 108 assertEquals("-foo-foo-foo-", mat.replaceAll("-")); in testReplaceAll() 141 Matcher mat = pat.matcher(input); in testReplaceFirst() local 143 assertEquals("zzzcatzzzdogzzz", mat.replaceFirst("cat")); in testReplaceFirst() 227 Matcher mat = test.matcher(positiveTestString); in testGroupint() local 228 mat.matches(); in testGroupint() 233 mat.group(i + 2); in testGroupint() 235 mat.group(i + 100); in testGroupint() 237 mat.group(-1); in testGroupint() 239 mat.group(-100); in testGroupint() [all …]
|
D | Matcher2Test.java | 224 Matcher mat = pat.matcher(str); in testReplacementBackSlash() local 226 mat.replaceAll(substitutionString); in testReplacementBackSlash()
|