mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
Fix segment tests
This commit is contained in:
parent
213f16defa
commit
b847af4ae7
1 changed files with 2 additions and 2 deletions
|
|
@ -3,9 +3,9 @@
|
|||
[reitit.impl :as impl]))
|
||||
|
||||
(deftest segments-test
|
||||
(is (= ["" "api" "ipa" "beer" "craft" "bisse"]
|
||||
(is (= ["api" "ipa" "beer" "craft" "bisse"]
|
||||
(into [] (impl/segments "/api/ipa/beer/craft/bisse"))))
|
||||
(is (= ["" "a" "" "b" "" "c" ""]
|
||||
(is (= ["a" "" "b" "" "c" ""]
|
||||
(into [] (impl/segments "/a//b//c/")))))
|
||||
|
||||
(deftest strip-nils-test
|
||||
|
|
|
|||
Loading…
Reference in a new issue