- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestSearchWrappers (0.13 sec)
-
src/sort/search_test.go
{"IntSlice.Search", IntSlice(data).Search(0), 2}, {"Float64Slice.Search", Float64Slice(fdata).Search(2.0), 3}, {"StringSlice.Search", StringSlice(sdata).Search("x"), 3}, } func TestSearchWrappers(t *testing.T) { for _, e := range wrappertests { if e.result != e.i { t.Errorf("%s: expected index %d; got %d", e.name, e.i, e.result) } } } func runSearchWrappers() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 07 14:42:13 UTC 2022 - 6.8K bytes - Viewed (0)