Lines Matching refs:compareLongs

139   private static int compareLongs(long x, long y) {  in compareLongs()  method in Main
470 expectEquals(-1, compareLongs(Long.MIN_VALUE, Long.MIN_VALUE + 1L)); in testCompareLongs()
471 expectEquals(-1, compareLongs(Long.MIN_VALUE, -1L)); in testCompareLongs()
472 expectEquals(-1, compareLongs(Long.MIN_VALUE, 0L)); in testCompareLongs()
473 expectEquals(-1, compareLongs(Long.MIN_VALUE, 1L)); in testCompareLongs()
474 expectEquals(-1, compareLongs(Long.MIN_VALUE, Long.MAX_VALUE)); in testCompareLongs()
475 expectEquals(-1, compareLongs(-1L, 0L)); in testCompareLongs()
476 expectEquals(-1, compareLongs(-1L, 1L)); in testCompareLongs()
477 expectEquals(-1, compareLongs(0L, 1L)); in testCompareLongs()
479 expectEquals(0, compareLongs(Long.MIN_VALUE, Long.MIN_VALUE)); in testCompareLongs()
480 expectEquals(0, compareLongs(-1L, -1L)); in testCompareLongs()
481 expectEquals(0, compareLongs(0L, 0L)); in testCompareLongs()
482 expectEquals(0, compareLongs(1L, 1L)); in testCompareLongs()
483 expectEquals(0, compareLongs(Long.MAX_VALUE, Long.MAX_VALUE)); in testCompareLongs()
485 expectEquals(1, compareLongs(0L, -1L)); in testCompareLongs()
486 expectEquals(1, compareLongs(1L, -1L)); in testCompareLongs()
487 expectEquals(1, compareLongs(1L, 0L)); in testCompareLongs()
488 expectEquals(1, compareLongs(Long.MAX_VALUE, Long.MIN_VALUE)); in testCompareLongs()
489 expectEquals(1, compareLongs(Long.MAX_VALUE, -1L)); in testCompareLongs()
490 expectEquals(1, compareLongs(Long.MAX_VALUE, 0L)); in testCompareLongs()
491 expectEquals(1, compareLongs(Long.MAX_VALUE, 1L)); in testCompareLongs()
492 expectEquals(1, compareLongs(Long.MAX_VALUE, Long.MAX_VALUE - 1L)); in testCompareLongs()
494 expectEquals(-1, compareLongs(0x111111117FFFFFFFL, 0x11111111FFFFFFFFL)); in testCompareLongs()
495 expectEquals(0, compareLongs(0x111111117FFFFFFFL, 0x111111117FFFFFFFL)); in testCompareLongs()
496 expectEquals(1, compareLongs(0x11111111FFFFFFFFL, 0x111111117FFFFFFFL)); in testCompareLongs()
503 expectEquals(expected, compareLongs(i, j)); in testCompareLongs()
508 expectEquals(-1, compareLongs(i, 0)); in testCompareLongs()
512 expectEquals(1, compareLongs(i, 0)); in testCompareLongs()