Skip to content

Commit 1db90db

Browse files
committed
Add a test case for int matches at the end of urls
1 parent ec05731 commit 1db90db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

trie_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@ func (s *TrieSuite) TestMergeAndMatchCases(c *C) {
233233
"http://google.com/v42/domains/domain1",
234234
"/v<int:version>/domains/<string:name>",
235235
},
236+
// Int matcher at the end of the Trie
237+
{
238+
[]string{"/v<int:version>/domains/<int:name>"},
239+
"http://google.com/v42/domains/1",
240+
"/v<int:version>/domains/<int:name>",
241+
},
236242
// Int matcher, no match
237243
{
238244
[]string{"/v<int:version>/domains/<string:name>", "/<string:version>/domains/<string:name>"},

0 commit comments

Comments
 (0)