- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for containsExactlyElementsIn (0.12 sec)
-
guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java
List<Integer> target = Lists.newArrayList(contents); target.add(4); C addThenFilter = filter(createUnfiltered(target), EVEN); assertThat(filterThenAdd).containsExactlyElementsIn(addThenFilter); } } public void testAdd() { for (List<Integer> contents : SAMPLE_INPUTS) { for (int toAdd = 0; toAdd < 10; toAdd++) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 13K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableTableTest.java
private static <R, C, V> void validateViewOrdering(Table<R, C, V> original, Table<R, C, V> copy) { assertThat(copy.cellSet()).containsExactlyElementsIn(original.cellSet()).inOrder(); assertThat(copy.rowKeySet()).containsExactlyElementsIn(original.rowKeySet()).inOrder(); assertThat(copy.values()).containsExactlyElementsIn(original.values()).inOrder(); } public void testCopyOf() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
while (!q.isEmpty()) { assertThat(q).containsExactlyElementsIn(contents); Integer next = q.pollFirst(); contents.remove(next); assertThat(q).containsExactlyElementsIn(contents); for (int i = 0; i <= size; i++) { q.add(i); contents.add(i); assertThat(q).containsExactlyElementsIn(contents); q.add(next); contents.add(next);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
while (!q.isEmpty()) { assertThat(q).containsExactlyElementsIn(contents); Integer next = q.pollFirst(); contents.remove(next); assertThat(q).containsExactlyElementsIn(contents); for (int i = 0; i <= size; i++) { q.add(i); contents.add(i); assertThat(q).containsExactlyElementsIn(contents); q.add(next); contents.add(next);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
ImmutableSortedSet<String> set = ImmutableSortedSet.copyOf(strings); sort(strings); for (int i = 0; i < strings.length; i++) { assertThat(set.headSet(strings[i], true)) .containsExactlyElementsIn(sortedNumberNames(0, i + 1)) .inOrder(); } } public void testHeadSetExclusive() { String[] strings = NUMBER_NAMES.toArray(new String[0]);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 46.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java
} List<String> actualKeys = new ArrayList<>(); multimap.keys().spliterator().forEachRemaining(actualKeys::add); assertThat(actualKeys) .containsExactlyElementsIn(transform(expectedEntries, Entry::getKey)) .inOrder(); } public void testEntriesSpliterator() { List<Entry<String, Integer>> expectedEntries = asList(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java
multimap.put("bar", 3); multimap.put("foo", 2); LinkedListMultimap<String, Integer> copy = LinkedListMultimap.create(multimap); assertEquals(multimap, copy); assertThat(copy.entries()).containsExactlyElementsIn(multimap.entries()).inOrder(); } public void testCreateFromSize() { LinkedListMultimap<String, Integer> multimap = LinkedListMultimap.create(20); multimap.put("foo", 1);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SetsTest.java
} }); assertWithMessage("Sets.combinations(%s, %s)", sampleSet, k) .that(Sets.combinations(sampleSet, k)) .containsExactlyElementsIn(expected) .inOrder(); } } } private static <E> Set<E> set(E... elements) { return ImmutableSet.copyOf(elements); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 48.6K bytes - Viewed (0)