Lines Matching defs:expected
401 int expected = Character.codePointCount(str, j, length);
402 check(result != expected, "codePointCount(input["+i+"], "+j+", "+length+")",
403 result, expected);
408 check(result != expected, "substring:codePointCount(input["+i+"], "+j+", "+length+")",
409 result, expected);
413 int expected = Character.codePointCount(str, 0, j);
414 check(result != expected, "codePointCount(input["+i+"], 0, "+j+")",
415 result, expected);
418 check(result != expected, "substring:codePointCount(input["+i+"], 0, "+j+")",
419 result, expected);
448 int expected = j;
452 expected--;
455 check(result != expected,
457 result, expected);
462 int expected = j;
466 expected++;
469 check(result != expected,
471 result, expected);
508 int expected = j;
512 expected--;
515 check(result != expected,
517 result, expected);
522 int expected = j;
526 expected++;
529 check(result != expected,
531 result, expected);
544 static void testCodePoint(boolean isAt, String s, int index, int expected) {
547 check(c != expected,
549 + s + ">", c, expected);
566 static void testIndexOf(String s, int c, int expected) {
567 testIndexOf2(s, c, expected);
569 testIndexOf2(s + (char) c, c, expected);
572 testIndexOf2(s + new String(surrogates), c, expected);
573 testIndexOf2(s + surrogates[0], c, expected);
574 testIndexOf2(s + surrogates[1], c, expected);
576 testIndexOf2(surrogates[0] + s, c, expected + 1);
577 testIndexOf2(surrogates[1] + s, c, expected + 1);
582 static void testIndexOf2(String s, int c, int expected) {
585 check(index != expected,
587 index, expected);
590 static void testLastIndexOf(String s, int c, int expected) {
591 testLastIndexOf2(s, c, expected);
593 testLastIndexOf2((char) c + s, c, expected + 1);
597 testLastIndexOf2(s + surrogates[0], c, expected);
598 testLastIndexOf2(s + surrogates[1], c, expected);
599 testLastIndexOf2(new String(surrogates) + s, c, expected + 2);
600 testLastIndexOf2(surrogates[0] + s, c, expected + 1);
601 testLastIndexOf2(surrogates[1] + s, c, expected + 1);
606 static void testLastIndexOf2(String s, int c, int expected) {
609 check(index != expected,
611 index, expected);
614 static int testIndexOf(String s, int fromIndex, int c, int expected) {
617 check(index != expected,
620 index, expected);
625 static int testLastIndexOf(String s, int fromIndex, int c, int expected) {
628 check(index != expected,
631 index, expected);
680 static void check(boolean err, String s, int got, int expected) {
685 + ", expected "
686 + toHexString(expected));