summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--search/search_test.go4
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)
}