- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestBinarySearch (0.16 sec)
-
guava-tests/test/com/google/common/collect/OrderingTest.java
.addEqualityGroup(ordering, Ordering.natural().nullsLast()) .addEqualityGroup(numberOrdering.nullsLast()) .addEqualityGroup(Ordering.natural()) .testEquals(); } public void testBinarySearch() { List<Integer> ints = Lists.newArrayList(0, 2, 3, 5, 7, 9); assertEquals(4, numberOrdering.binarySearch(ints, 7)); } public void testSortedCopy() { List<@Nullable Integer> unsortedInts =
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Mar 07 18:34:03 UTC 2024 - 42.5K bytes - Viewed (0) -
src/slices/sort_test.go
t.Errorf("MinFunc([]): got no panic, want panic") } if !panics(func() { MaxFunc(emptySlice, intCmp) }) { t.Errorf("MaxFunc([]): got no panic, want panic") } } func TestBinarySearch(t *testing.T) { str1 := []string{"foo"} str2 := []string{"ab", "ca"} str3 := []string{"mo", "qo", "vo"} str4 := []string{"ab", "ad", "ca", "xy"} // slice with repeating elements
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 19:20:55 UTC 2024 - 9.5K bytes - Viewed (0)