mirror of https://github.com/gofiber/fiber.git
🔍 Add small test case
parent
30ca24140f
commit
e0c7179715
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue