From b847af4ae7707b28437ec2c20e1858ecbe189f6d Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Sun, 13 Jan 2019 21:41:22 +0200 Subject: [PATCH] Fix segment tests --- test/cljc/reitit/impl_test.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cljc/reitit/impl_test.cljc b/test/cljc/reitit/impl_test.cljc index d7286d60..2ac3cc4b 100644 --- a/test/cljc/reitit/impl_test.cljc +++ b/test/cljc/reitit/impl_test.cljc @@ -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