Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testMinMaxComparator (1.46 sec)

  1. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

        Foo a = new Foo(1);
        Foo b = new Foo(1);
        assertThat(min(a, b)).isSameInstanceAs(a);
        assertThat(max(a, b)).isSameInstanceAs(a);
      }
    
      public void testMinMaxComparator() {
        Comparator<Integer> reverse = reverseOrder();
        assertThat(min(1, 2, reverse)).isEqualTo(2);
        assertThat(min(2, 1, reverse)).isEqualTo(2);
        assertThat(max(1, 2, reverse)).isEqualTo(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top