- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testLeastOfIterableLargeK (0.27 sec)
-
android/guava-tests/test/com/google/common/collect/OrderingTest.java
int k = random.nextInt(10 * seed); assertEquals(ordering.sortedCopy(list).subList(0, k), ordering.leastOf(list, k)); } } } public void testLeastOfIterableLargeK() { List<Integer> list = asList(4, 2, 3, 5, 1); assertEquals( asList(1, 2, 3, 4, 5), Ordering.<Integer>natural().leastOf(list, Integer.MAX_VALUE)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 42.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/OrderingTest.java
int k = random.nextInt(10 * seed); assertEquals(ordering.sortedCopy(list).subList(0, k), ordering.leastOf(list, k)); } } } public void testLeastOfIterableLargeK() { List<Integer> list = asList(4, 2, 3, 5, 1); assertEquals( asList(1, 2, 3, 4, 5), Ordering.<Integer>natural().leastOf(list, Integer.MAX_VALUE)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 42.6K bytes - Viewed (0)