- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testOfferedKPlusOne (0.11 sec)
-
guava-tests/test/com/google/common/collect/TopKSelectorTest.java
TopKSelector<Integer> top = TopKSelector.least(10); top.offer(3); top.offer(5); top.offer(2); assertThat(top.topK()).containsExactly(2, 3, 5).inOrder(); } public void testOfferedKPlusOne() { for (List<Integer> list : Collections2.permutations(Ints.asList(1, 2, 3, 4, 5))) { TopKSelector<Integer> top = TopKSelector.least(4); top.offerAll(list);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Mar 07 18:34:03 UTC 2024 - 3.9K bytes - Viewed (0)