Browse Source

Add test which used to fail for queries.

Fixes #66
Kamil Kisiel 11 years ago
parent
commit
c3c5f0000f
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      mux_test.go

+ 9
- 0
mux_test.go View File

@ -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