Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testMinMaxNatural_equalInstances (0.16 sec)

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

        assertThat(min(1, 2)).isEqualTo(1);
        assertThat(min(2, 1)).isEqualTo(1);
        assertThat(max(1, 2)).isEqualTo(2);
        assertThat(max(2, 1)).isEqualTo(2);
      }
    
      public void testMinMaxNatural_equalInstances() {
        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() {
    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