Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testCreateWithComparator (0.09 sec)

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

        assertEquals(2, multiset.count("foo"));
        assertEquals(Ordering.natural(), multiset.comparator());
        assertEquals("[bar, foo x 2]", multiset.toString());
      }
    
      public void testCreateWithComparator() {
        Multiset<String> multiset = TreeMultiset.create(Collections.reverseOrder());
        multiset.add("foo", 2);
        multiset.add("bar");
        assertEquals(3, multiset.size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        assertEquals(2, multiset.count("foo"));
        assertEquals(Ordering.natural(), multiset.comparator());
        assertEquals("[bar, foo x 2]", multiset.toString());
      }
    
      public void testCreateWithComparator() {
        Multiset<String> multiset = TreeMultiset.create(Collections.reverseOrder());
        multiset.add("foo", 2);
        multiset.add("bar");
        assertEquals(3, multiset.size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
Back to top