Lines Matching defs:lhs
43 private <T> void assertComparatorEq(T lhs, T rhs, Comparator<T> rel) {
44 assertEquals(String.format("%s should be equal to %s", lhs, rhs), rel.compare(lhs, rhs), 0);
45 assertEquals(String.format("%s should be equal to %s (reverse check)", lhs, rhs),
46 rel.compare(rhs, lhs), 0);
49 private <T> void assertComparatorLt(T lhs, T rhs, Comparator<T> rel) {
50 assertTrue(String.format("%s should be less than %s", lhs, rhs), rel.compare(lhs, rhs) < 0);
51 assertTrue(String.format("%s should be less than %s (reverse check)", lhs, rhs),
52 rel.compare(rhs, lhs) > 0);