Skip to content

Commit 169d0fc

Browse files
committed
Include 2 letter query param key in unit test
1 parent 4f82413 commit 169d0fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

util_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ func TestSuint(t *testing.T) {
2121
}
2222

2323
func TestFilterCustomQuery(t *testing.T) {
24-
n, err := nurl.Parse("foo://host?a=b&x-custom=foo&c=d")
24+
n, err := nurl.Parse("foo://host?a=b&x-custom=foo&c=d&ok=y")
2525
if err != nil {
2626
t.Fatal(err)
2727
}
2828
nx := FilterCustomQuery(n).Query()
2929
if nx.Get("x-custom") != "" {
3030
t.Fatalf("didn't expect x-custom")
3131
}
32+
if nx.Get("ok") != "y" {
33+
t.Fatalf("expected ok=y, got %v", nx.Get("ok"))
34+
}
3235
}

0 commit comments

Comments
 (0)