Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for testComparator (0.97 sec)

  1. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  3. 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.emptyIterator;
    import static java.util.Collections.singleton;
    
    import com.google.common.annotations.GwtCompatible;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. 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.emptyIterator;
    import static java.util.Collections.singleton;
    
    import com.google.common.annotations.GwtCompatible;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/SignedBytesTest.java

                new byte[] {GREATEST, GREATEST},
                new byte[] {GREATEST, GREATEST, GREATEST});
    
        Comparator<byte[]> comparator = SignedBytes.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testLexicographicalComparatorSerializable() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/SignedBytesTest.java

                new byte[] {GREATEST, GREATEST},
                new byte[] {GREATEST, GREATEST, GREATEST});
    
        Comparator<byte[]> comparator = SignedBytes.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testLexicographicalComparatorSerializable() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

                new long[] {GREATEST, GREATEST},
                new long[] {GREATEST, GREATEST, GREATEST});
    
        Comparator<long[]> comparator = UnsignedLongs.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
      }
    
      public void testSort() {
        testSort(new long[] {}, new long[] {});
        testSort(new long[] {2}, new long[] {2});
        testSort(new long[] {2, 1, 0}, new long[] {0, 1, 2});
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  8. android/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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/CharsTest.java

                new char[] {GREATEST, GREATEST},
                new char[] {GREATEST, GREATEST, GREATEST});
    
        Comparator<char[]> comparator = Chars.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testLexicographicalComparatorSerializable() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

                new double[] {GREATEST, GREATEST},
                new double[] {GREATEST, GREATEST, GREATEST});
    
        Comparator<double[]> comparator = Doubles.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
      }
    
      public void testReverse() {
        testReverse(new double[] {}, new double[] {});
        testReverse(new double[] {1}, new double[] {1});
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
Back to top