Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testToMap (0.08 sec)

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

        NavigableMap<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
        assertThat(map.entrySet()).isEmpty();
        assertTrue(map.isEmpty());
        assertThat(map.get("five")).isNull();
      }
    
      public void testToMap() {
        Iterable<String> strings = ImmutableList.of("one", "two", "three");
        ImmutableMap<String, Integer> map = Maps.toMap(strings, LENGTH_FUNCTION);
        assertEquals(ImmutableMap.of("one", 3, "two", 3, "three", 5), map);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testToMultiset_empty() {
        assertThat(fluent().toMultiset()).isEmpty();
      }
    
      public void testToMap() {
        assertThat(fluent(1, 2, 3).toMap(Functions.toStringFunction()).entrySet())
            .containsExactly(immutableEntry(1, "1"), immutableEntry(2, "2"), immutableEntry(3, "3"))
            .inOrder();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MapsTest.java

        NavigableMap<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
        assertThat(map.entrySet()).isEmpty();
        assertTrue(map.isEmpty());
        assertThat(map.get("five")).isNull();
      }
    
      public void testToMap() {
        Iterable<String> strings = ImmutableList.of("one", "two", "three");
        ImmutableMap<String, Integer> map = Maps.toMap(strings, LENGTH_FUNCTION);
        assertEquals(ImmutableMap.of("one", 3, "two", 3, "three", 5), map);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 65K bytes
    - Viewed (0)
Back to top