Skip to content

Commit

Permalink
Add a test case for int matches at the end of urls
Browse files Browse the repository at this point in the history
  • Loading branch information
b0d0nne11 committed Mar 18, 2015
1 parent 4d8fee4 commit 58a715c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions trie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,12 @@ func (s *TrieSuite) TestMergeAndMatchCases(c *C) {
"http://google.com/v42/domains/domain1",
"/v<int:version>/domains/<string:name>",
},
// Int matcher at the end of the Trie
{
[]string{"/v<int:version>/domains/<int:name>"},
"http://google.com/v42/domains/1",
"/v<int:version>/domains/<int:name>",
},
// Int matcher, no match
{
[]string{"/v<int:version>/domains/<string:name>", "/<string:version>/domains/<string:name>"},
Expand Down

0 comments on commit 58a715c

Please sign in to comment.