Browse Source

Add test which used to fail for queries.

Fixes #66
pull/118/head
Kamil Kisiel 11 years ago
parent
commit
c3c5f0000f
  1. 9
      mux_test.go

9
mux_test.go

@ -660,6 +660,15 @@ func TestQueries(t *testing.T) { @@ -660,6 +660,15 @@ func TestQueries(t *testing.T) {
path: "",
shouldMatch: true,
},
{
title: "Queries route, bad submatch",
route: new(Route).Queries("foo", "bar", "baz", "ding"),
request: newRequest("GET", "http://localhost?fffoo=bar&baz=dingggg"),
vars: map[string]string{},
host: "",
path: "",
shouldMatch: false,
},
}
for _, test := range tests {

Loading…
Cancel
Save