Lines Matching refs:expected
387 int expected = 0; in testCompareBytes() local
388 if (i < j) expected = -1; in testCompareBytes()
389 else if (i > j) expected = 1; in testCompareBytes()
390 expectEquals(expected, compareBytes(i, j)); in testCompareBytes()
422 int expected = 0; in testCompareShorts() local
423 if (i < j) expected = -1; in testCompareShorts()
424 else if (i > j) expected = 1; in testCompareShorts()
425 expectEquals(expected, compareShorts(i, j)); in testCompareShorts()
445 int expected = 0; in testCompareChars() local
446 if (i < j) expected = -1; in testCompareChars()
447 else if (i > j) expected = 1; in testCompareChars()
448 expectEquals(expected, compareChars(i, j)); in testCompareChars()
480 int expected = 0; in testCompareInts() local
481 if (i < j) expected = -1; in testCompareInts()
482 else if (i > j) expected = 1; in testCompareInts()
483 expectEquals(expected, compareInts(i, j)); in testCompareInts()
519 int expected = 0; in testCompareLongs() local
520 if (i < j) expected = -1; in testCompareLongs()
521 else if (i > j) expected = 1; in testCompareLongs()
522 expectEquals(expected, compareLongs(i, j)); in testCompareLongs()
563 int expected = 0; in testCompareByteShort() local
564 if (i < j) expected = -1; in testCompareByteShort()
565 else if (i > j) expected = 1; in testCompareByteShort()
566 expectEquals(expected, compareByteShort(i, j)); in testCompareByteShort()
590 int expected = 0; in testCompareByteChar() local
591 if (i < j) expected = -1; in testCompareByteChar()
592 else if (i > j) expected = 1; in testCompareByteChar()
593 expectEquals(expected, compareByteChar(i, j)); in testCompareByteChar()
625 int expected = 0; in testCompareByteInt() local
626 if (i < j) expected = -1; in testCompareByteInt()
627 else if (i > j) expected = 1; in testCompareByteInt()
628 expectEquals(expected, compareByteInt(i, j)); in testCompareByteInt()
661 int expected = 0; in testCompareShortByte() local
662 if (i < j) expected = -1; in testCompareShortByte()
663 else if (i > j) expected = 1; in testCompareShortByte()
664 expectEquals(expected, compareShortByte(i, j)); in testCompareShortByte()
688 int expected = 0; in testCompareShortChar() local
689 if (i < j) expected = -1; in testCompareShortChar()
690 else if (i > j) expected = 1; in testCompareShortChar()
691 expectEquals(expected, compareShortChar(i, j)); in testCompareShortChar()
723 int expected = 0; in testCompareShortInt() local
724 if (i < j) expected = -1; in testCompareShortInt()
725 else if (i > j) expected = 1; in testCompareShortInt()
726 expectEquals(expected, compareShortInt(i, j)); in testCompareShortInt()
753 int expected = 0; in testCompareCharByte() local
754 if (i < j) expected = -1; in testCompareCharByte()
755 else if (i > j) expected = 1; in testCompareCharByte()
756 expectEquals(expected, compareCharByte(i, j)); in testCompareCharByte()
782 int expected = 0; in testCompareCharShort() local
783 if (i < j) expected = -1; in testCompareCharShort()
784 else if (i > j) expected = 1; in testCompareCharShort()
785 expectEquals(expected, compareCharShort(i, j)); in testCompareCharShort()
811 int expected = 0; in testCompareCharInt() local
812 if (i < j) expected = -1; in testCompareCharInt()
813 else if (i > j) expected = 1; in testCompareCharInt()
814 expectEquals(expected, compareCharInt(i, j)); in testCompareCharInt()
847 int expected = 0; in testCompareIntByte() local
848 if (i < j) expected = -1; in testCompareIntByte()
849 else if (i > j) expected = 1; in testCompareIntByte()
850 expectEquals(expected, compareIntByte(i, j)); in testCompareIntByte()
882 int expected = 0; in testCompareIntShort() local
883 if (i < j) expected = -1; in testCompareIntShort()
884 else if (i > j) expected = 1; in testCompareIntShort()
885 expectEquals(expected, compareIntShort(i, j)); in testCompareIntShort()
909 int expected = 0; in testCompareIntChar() local
910 if (i < j) expected = -1; in testCompareIntChar()
911 else if (i > j) expected = 1; in testCompareIntChar()
912 expectEquals(expected, compareIntChar(i, j)); in testCompareIntChar()
947 private static void expectEquals(int expected, int result) { in expectEquals() argument
948 if (expected != result) { in expectEquals()
949 throw new Error("Expected: " + expected + ", found: " + result); in expectEquals()