Lines Matching defs:expected
158 private static void check(Matcher m, String expected) {
160 if (!m.group().equals(expected))
164 private static void check(Matcher m, String result, boolean expected) {
166 if (m.group().equals(result) != expected)
170 private static void check(Pattern p, String s, boolean expected) {
171 if (p.matcher(s).find() != expected)
175 private static void check(String p, String s, boolean expected) {
177 if (matcher.find() != expected)
181 private static void check(String p, char c, boolean expected) {
182 String propertyPattern = expected ? "\\p" + p : "\\P" + p;
190 private static void check(String p, int codePoint, boolean expected) {
191 String propertyPattern = expected ? "\\p" + p : "\\P" + p;
200 boolean expected)
204 if (expected)
205 check(matcher, s, expected);
259 // Test if an expected NPE gets thrown when passing in a null argument
468 static void check(String regex, String input, String[] expected) {
475 if (!Arrays.asList(expected).equals(result))
1544 boolean[] expected = new boolean[] {
1556 if (matcher.matches() != expected[i]) {
1693 // expected dropping of ""
2933 // Construct expected result
3151 String expected, String actual) {
3155 System.err.println("Expected = " + expected);
3230 // Read a line for the expected result
3342 private static void check(Pattern p, String s, String g, String expected) {
3345 if (!m.group(g).equals(expected))
3349 private static void checkReplaceFirst(String p, String s, String r, String expected)
3351 if (!expected.equals(Pattern.compile(p)
3357 private static void checkReplaceAll(String p, String s, String r, String expected)
3359 if (!expected.equals(Pattern.compile(p)