diff options
| author | Paul Buetow <paul@buetow.org> | 2023-03-24 22:14:53 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-03-24 22:14:53 +0200 |
| commit | 0c217e49542b1baeb73e4e56a868a08ea51296ac (patch) | |
| tree | 01daaf2bf3047280e3183aad0fb5cee7649a7e51 /search/search_test.go | |
| parent | c8e24d8da9ed313566e4c2a71c11452246e4d171 (diff) | |
rename interface Put to Set
Diffstat (limited to 'search/search_test.go')
| -rw-r--r-- | search/search_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/search/search_test.go b/search/search_test.go index 1d445bc..f671a9f 100644 --- a/search/search_test.go +++ b/search/search_test.go @@ -45,7 +45,7 @@ func TestGoMap(t *testing.T) { } } -func test(s Put, l int, t *testing.T) { +func test(s Set, l int, t *testing.T) { keys := ds.NewRandomArrayList(l, l) randoms := ds.NewRandomArrayList(l, -1) mapping := make(map[int]int, l) @@ -141,7 +141,7 @@ func BenchmarkGoMap(t *testing.B) { } } -func benchmark(s Put, l int, b *testing.B) { +func benchmark(s Set, l int, b *testing.B) { list := ds.NewRandomArrayList(l, -1) b.Run(fmt.Sprintf("random(%d)", l), func(b *testing.B) { |
