aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/search_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/search_test.go')
-rw-r--r--internal/web/search_test.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/internal/web/search_test.go b/internal/web/search_test.go
index 6ced39b..7ade83f 100644
--- a/internal/web/search_test.go
+++ b/internal/web/search_test.go
@@ -10,11 +10,12 @@ import (
func TestSearchPattern(t *testing.T) {
for q, want := range map[string]string{
- "go tem": "go.*tem",
- " a.b (c) ": `a\.b.*\(c\)`,
- "one": "one",
- " ": "",
- "": "",
+ "go tem": "go.*tem",
+ " a.b (c) ": `a\.b.*\(c\)`,
+ "one": "one",
+ " ": "",
+ "": "",
+ "a b c d e f g h i j": "a.*b.*c.*d.*e.*f.*g.*h", // maxSearchWords
} {
if got := searchPattern(q); got != want {
t.Errorf("searchPattern(%q) = %q, want %q", q, got, want)