diff options
| author | Paul Buetow <git@mx.buetow.org> | 2020-12-26 09:20:35 +0000 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2020-12-26 09:20:35 +0000 |
| commit | 364087d3b4b2b1e6f809921c931a7654a725ebee (patch) | |
| tree | 0275af7f373b6a036c849603c3a8d87f0f2b4e0b | |
| parent | bfc068dfa5047dbf776f99a5ff7678b7382577cd (diff) | |
hash works
| -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 22f56d4..1d445bc 100644 --- a/search/search_test.go +++ b/search/search_test.go @@ -35,7 +35,7 @@ func TestRedBlackBST(t *testing.T) { func TestHash(t *testing.T) { for i := minLength; i <= maxLength; i *= factor { - test(NewHash(), i, t) + test(NewHash(i*2), i, t) } } @@ -128,7 +128,7 @@ func BenchmarkRedBlackBST(t *testing.B) { } func BenchmarkHash(t *testing.B) { - s := NewHash() + s := NewHash(maxLength * 2) for i := minLength; i <= maxLength; i *= factor { benchmark(s, i, t) } |
