Lines Matching refs:compareByteShort
170 public static int compareByteShort(byte x, short y) { in compareByteShort() method in TestCompare
489 expectEquals(-1, compareByteShort(Byte.MIN_VALUE, (short)-1)); in testCompareByteShort()
490 expectEquals(-1, compareByteShort(Byte.MIN_VALUE, (short)0)); in testCompareByteShort()
491 expectEquals(-1, compareByteShort(Byte.MIN_VALUE, (short)1)); in testCompareByteShort()
492 expectEquals(-1, compareByteShort(Byte.MIN_VALUE, Short.MAX_VALUE)); in testCompareByteShort()
493 expectEquals(-1, compareByteShort((byte)-1, (short)0)); in testCompareByteShort()
494 expectEquals(-1, compareByteShort((byte)-1, (short)1)); in testCompareByteShort()
495 expectEquals(-1, compareByteShort((byte)0, (short)1)); in testCompareByteShort()
496 expectEquals(-1, compareByteShort(Byte.MAX_VALUE, (short)(Short.MAX_VALUE - 1))); in testCompareByteShort()
497 expectEquals(-1, compareByteShort(Byte.MAX_VALUE, Short.MAX_VALUE)); in testCompareByteShort()
499 expectEquals(0, compareByteShort((byte)-1, (short)-1)); in testCompareByteShort()
500 expectEquals(0, compareByteShort((byte)0, (short)0)); in testCompareByteShort()
501 expectEquals(0, compareByteShort((byte)1, (short)1)); in testCompareByteShort()
503 expectEquals(1, compareByteShort(Byte.MIN_VALUE, Short.MIN_VALUE)); in testCompareByteShort()
504 expectEquals(1, compareByteShort(Byte.MIN_VALUE, (short)(Short.MIN_VALUE + 1))); in testCompareByteShort()
505 expectEquals(1, compareByteShort((byte)0, (short)-1)); in testCompareByteShort()
506 expectEquals(1, compareByteShort((byte)1, (short)-1)); in testCompareByteShort()
507 expectEquals(1, compareByteShort((byte)1, (short)0)); in testCompareByteShort()
508 expectEquals(1, compareByteShort(Byte.MAX_VALUE, Short.MIN_VALUE)); in testCompareByteShort()
509 expectEquals(1, compareByteShort(Byte.MAX_VALUE, (short)-1)); in testCompareByteShort()
510 expectEquals(1, compareByteShort(Byte.MAX_VALUE, (short)0)); in testCompareByteShort()
511 expectEquals(1, compareByteShort(Byte.MAX_VALUE, (short)1)); in testCompareByteShort()
518 expectEquals(expected, compareByteShort(i, j)); in testCompareByteShort()