Home
last modified time | relevance | path

Searched refs:CustomInt (Results 1 – 4 of 4) sorted by relevance

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/number/
DOrderingComparisonTest.java67 assertThat(new CustomInt(5), lessThan(new CustomInt(10))); in testComparesCustomTypesWhoseCompareToReturnsValuesGreaterThatOne()
70 private static final class CustomInt implements Comparable<CustomInt> { class in OrderingComparisonTest
72 public CustomInt(int value) { in CustomInt() method in OrderingComparisonTest.CustomInt
76 public int compareTo(CustomInt other) { in compareTo()
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/comparator/
DComparatorMatcherTest.java73 assertThat(new CustomInt(5), lessThan(new CustomInt(10)));
76 private static final class CustomInt implements Comparable<CustomInt> {
79 public CustomInt(int value) {
83 public int compareTo(CustomInt other) {
DComparatorMatcherBuilderTest.java95 …assertThat(new CustomInt(5), ComparatorMatcherBuilder.<CustomInt>usingNaturalOrdering().lessThan(n… in testComparesCustomTypesWhoseCompareToReturnsValuesGreaterThatOne()
116 private static final class CustomInt implements Comparable<CustomInt> { class in ComparatorMatcherBuilderTest
119 public CustomInt(int value) { in CustomInt() method in ComparatorMatcherBuilderTest.CustomInt
124 public int compareTo(CustomInt other) { in compareTo()
/external/python/cpython2/Lib/test/
Dtest_zlib.py200 self.assertEqual(zlib.decompress(compressed, 15, CustomInt()), data)
377 self.assertEqual(dco.decompress(compressed, CustomInt()), data[:100])
491 self.assertEqual(dco.flush(CustomInt()), input[1:])
775 class CustomInt: class