Lines Matching refs:compareTo
531 if (b.compareTo(b2) != 0)
541 if (b.compareTo(b2) <= 0)
548 if (b.compareTo(b2) <= 0)
551 // Check equals and compareTo with interesting values
554 if (xb.compareTo(xb) != 0) {
555 fail("compareTo not reflexive", xb, xb, x, x);
562 if (xb.compareTo(yb) != - yb.compareTo(xb)) {
563 fail("compareTo not anti-symmetric",
566 if ((xb.compareTo(yb) == 0) != xb.equals(yb)) {
567 fail("compareTo inconsistent with equals",
570 if (xb.compareTo(yb) != Short.compare(x, y)) {
577 fail("Incorrect results for ShortBuffer.compareTo",