Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for testComparators (0.08 sec)

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

        assertSame(Ordering.natural(), copyFromSorted.valueComparator());
        assertSame(Ordering.natural(), copyFromSorted.get(1.0).comparator());
      }
    
      public void testComparators() {
        TreeMultimap<String, Integer> multimap = TreeMultimap.create();
        assertEquals(Ordering.natural(), multimap.keyComparator());
        assertEquals(Ordering.natural(), multimap.valueComparator());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

    import static com.google.common.collect.Comparators.max;
    import static com.google.common.collect.Comparators.min;
    import static com.google.common.collect.testing.Helpers.testComparator;
    import static com.google.common.truth.Truth.assertThat;
    import static java.util.Arrays.asList;
    import static java.util.Collections.singleton;
    import static java.util.Comparator.comparing;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        // Now we don't care what order it's put the list in, only that
        // comparing any pair of elements gives the answer we expect.
        testComparator(arbitrary, list);
      }
    
      public void testUsingToString() {
        Ordering<Object> ordering = Ordering.usingToString();
        testComparator(ordering, 1, 12, 124, 2);
        assertEquals("Ordering.usingToString()", ordering.toString());
        assertSame(ordering, reserialize(ordering));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/OrderingTest.java

        // Now we don't care what order it's put the list in, only that
        // comparing any pair of elements gives the answer we expect.
        testComparator(arbitrary, list);
      }
    
      public void testUsingToString() {
        Ordering<Object> ordering = Ordering.usingToString();
        testComparator(ordering, 1, 12, 124, 2);
        assertEquals("Ordering.usingToString()", ordering.toString());
        assertSame(ordering, reserialize(ordering));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

    import static com.google.common.collect.testing.Helpers.assertEmpty;
    import static com.google.common.collect.testing.Helpers.assertEqualInOrder;
    import static com.google.common.collect.testing.Helpers.testComparator;
    import static java.util.Arrays.asList;
    import static java.util.Collections.emptyList;
    import static java.util.Collections.singleton;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.ArrayList;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

    import static com.google.common.collect.testing.Helpers.assertEmpty;
    import static com.google.common.collect.testing.Helpers.assertEqualInOrder;
    import static com.google.common.collect.testing.Helpers.testComparator;
    import static java.util.Arrays.asList;
    import static java.util.Collections.emptyList;
    import static java.util.Collections.singleton;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.ArrayList;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

       * the given {@code comparator}.
       *
       * @see #testComparator(Comparator, List)
       */
      public static <T extends @Nullable Object> void testComparator(
          Comparator<? super T> comparator, T... valuesInExpectedOrder) {
        testComparator(comparator, asList(valuesInExpectedOrder));
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/Helpers.java

       * the given {@code comparator}.
       *
       * @see #testComparator(Comparator, List)
       */
      public static <T extends @Nullable Object> void testComparator(
          Comparator<? super T> comparator, T... valuesInExpectedOrder) {
        testComparator(comparator, asList(valuesInExpectedOrder));
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        Comparator<byte[]> comparator = UnsignedBytes.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
        assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator);
    
        // The Java implementation.
        Comparator<byte[]> javaImpl = UnsignedBytes.lexicographicalComparatorJavaImpl();
        Helpers.testComparator(javaImpl, ordered);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        TreeMultimap<@Nullable String, @Nullable Integer> multimap = createPopulate();
        assertThat(multimap.values()).containsExactly(7, 3, 1, null, 0, 6, 2).inOrder();
      }
    
      public void testComparator() {
        TreeMultimap<@Nullable String, @Nullable Integer> multimap = createPopulate();
        assertEquals(DECREASING_INT_COMPARATOR, multimap.get("foo").comparator());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top