diff options
Diffstat (limited to '')
-rw-r--r-- | tests/test/server.scm (renamed from tests/server.scm) | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/server.scm b/tests/test/server.scm index a2b3ea9d..1b5d4775 100644 --- a/tests/server.scm +++ b/tests/test/server.scm @@ -2,8 +2,12 @@ ;; Tests parse-endpoint-string, used for defining server routes. ;;; Code: -(((web http make-routes) parse-endpoint-string) - ((hnh util) let*)) +(define-module (test server) + :use-module (srfi srfi-64) + :use-module (srfi srfi-88) + :use-module ((web http make-routes) + :select (parse-endpoint-string)) + :use-module ((hnh util) :select (let*))) (test-assert "Check that parsing doesn't crash" (parse-endpoint-string "/static/:dir/:file")) @@ -13,7 +17,6 @@ (test-equal "/static/([^/.]+)/([^/.]+)" path) (test-equal '(dir file) args)) - ;; Checks that parsing with custom regex works ;; along with literal periods. (let* ((path args (parse-endpoint-string "/static/:filename{.*}.:ext"))) |