🔍 Add small test case

pull/552/head
Fenny 2020-07-06 18:00:07 +02:00
parent 30ca24140f
commit e0c7179715
1 changed files with 1 additions and 0 deletions

View File

@ -173,6 +173,7 @@ func Test_Path_matchParams(t *testing.T) {
{url: "/api/joker/batman/robin/1", params: []string{"joker/batman", "robin", "1"}, match: true},
{url: "/api/joker/batman/robin/1/2", params: []string{"joker/batman/robin", "1", "2"}, match: true},
{url: "/api", params: nil, match: false},
{url: "/api/:test", params: nil, match: false},
})
testCase("/", []testparams{
{url: "/api", params: nil, match: false},