- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testCopyOfSingletonMap (0.08 seconds)
-
android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
assertEquals(Collections.<String, Integer>emptyMap(), copy); assertThat(ImmutableBiMap.copyOf(copy)).isSameInstanceAs(copy); assertThat(copy).isSameInstanceAs(ImmutableBiMap.of()); } public void testCopyOfSingletonMap() { ImmutableBiMap<String, Integer> copy = ImmutableBiMap.copyOf(singletonMap("one", 1)); assertMapEquals(copy, "one", 1); assertThat(ImmutableBiMap.copyOf(copy)).isSameInstanceAs(copy); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 21.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
assertThat(ImmutableSortedMap.copyOf(copy)).isSameInstanceAs(copy); assertThat(copy.comparator()).isEqualTo(Ordering.natural()); } public void testCopyOfSingletonMap() { ImmutableSortedMap<String, Integer> copy = ImmutableSortedMap.copyOf(singletonMap("one", 1)); assertMapEquals(copy, "one", 1); assertThat(ImmutableSortedMap.copyOf(copy)).isSameInstanceAs(copy);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 29.8K bytes - Click Count (0)