summaryrefslogtreecommitdiff
path: root/gemini/request_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'gemini/request_test.go')
-rw-r--r--gemini/request_test.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/gemini/request_test.go b/gemini/request_test.go
index c23d54b..1da24f7 100644
--- a/gemini/request_test.go
+++ b/gemini/request_test.go
@@ -3,7 +3,6 @@ package gemini_test
import (
"bytes"
"testing"
- "net/url"
"tildegit.org/tjp/gus/gemini"
)
@@ -85,19 +84,3 @@ func TestParseRequest(t *testing.T) {
})
}
}
-
-func TestUnescapedQuery(t *testing.T) {
- table := []string{
- "foo bar",
- }
-
- for _, test := range table {
- t.Run(test, func(t *testing.T) {
- u, _ := url.Parse("gemini://domain.com/path?" + url.QueryEscape(test))
- result := gemini.Request{ URL: u }.UnescapedQuery()
- if result != test {
- t.Errorf("expected %q, got %q", test, result)
- }
- })
- }
-}