This commit is contained in:
Akira Tempaku 2024-12-20 15:15:04 +09:00
parent 09c5a126be
commit d20dbe2649
3 changed files with 5 additions and 5 deletions

View file

@ -23,8 +23,8 @@
(ok (string= (path->uri "/nested/index") "/nested")))
(testing "dynamic path"
(ok (string= (path->uri "/user/[id]") "/user/:id"))
(ok (string= (path->uri "/location/[country]/[city]") "/location/:country/:city" ))))
(ok (string= (path->uri "/user/<id>") "/user/:id"))
(ok (string= (path->uri "/location/<country>/<city>") "/location/:country/:city" ))))
(deftest package-test
(testing "normal case"