Lines Matching refs:compareInts

124   private static int compareInts(int x, int y) {  in compareInts()  method in Main
435 expectEquals(-1, compareInts(Integer.MIN_VALUE, Integer.MIN_VALUE + 1)); in testCompareInts()
436 expectEquals(-1, compareInts(Integer.MIN_VALUE, -1)); in testCompareInts()
437 expectEquals(-1, compareInts(Integer.MIN_VALUE, 0)); in testCompareInts()
438 expectEquals(-1, compareInts(Integer.MIN_VALUE, 1)); in testCompareInts()
439 expectEquals(-1, compareInts(Integer.MIN_VALUE, Integer.MAX_VALUE)); in testCompareInts()
440 expectEquals(-1, compareInts(-1, 0)); in testCompareInts()
441 expectEquals(-1, compareInts(-1, 1)); in testCompareInts()
442 expectEquals(-1, compareInts(0, 1)); in testCompareInts()
444 expectEquals(0, compareInts(Integer.MIN_VALUE, Integer.MIN_VALUE)); in testCompareInts()
445 expectEquals(0, compareInts(-1, -1)); in testCompareInts()
446 expectEquals(0, compareInts(0, 0)); in testCompareInts()
447 expectEquals(0, compareInts(1, 1)); in testCompareInts()
448 expectEquals(0, compareInts(Integer.MAX_VALUE, Integer.MAX_VALUE)); in testCompareInts()
450 expectEquals(1, compareInts(0, -1)); in testCompareInts()
451 expectEquals(1, compareInts(1, -1)); in testCompareInts()
452 expectEquals(1, compareInts(1, 0)); in testCompareInts()
453 expectEquals(1, compareInts(Integer.MAX_VALUE, Integer.MIN_VALUE)); in testCompareInts()
454 expectEquals(1, compareInts(Integer.MAX_VALUE, -1)); in testCompareInts()
455 expectEquals(1, compareInts(Integer.MAX_VALUE, 0)); in testCompareInts()
456 expectEquals(1, compareInts(Integer.MAX_VALUE, 1)); in testCompareInts()
457 expectEquals(1, compareInts(Integer.MAX_VALUE, Integer.MAX_VALUE - 1)); in testCompareInts()
464 expectEquals(expected, compareInts(i, j)); in testCompareInts()