vendor/node_modules/wisp/test/string.wisp in ruby-wisp-source-0.7.0 vs vendor/node_modules/wisp/test/string.wisp in ruby-wisp-source-0.8.0

- old
+ new

@@ -1,10 +1,11 @@ -(import [join split] "../src/string") -(import [list] "../src/sequence") -(import [str =] "../src/runtime") +(ns wisp.test.string + (:use [wisp.src.string :only [join split]] + [wisp.src.sequence :only [list]] + [wisp.src.runtime :only [str =]])) -(.log console "test join") +(print "test join") (assert (= "" (join nil))) (assert (= "" (join "-" nil))) (assert (= "" (join ""))) @@ -27,10 +28,10 @@ (assert (= (str [:a 1]) (join {:a 1}))) (assert (= (str [:a 1]) (join "," {:a 1}))) (assert (= (str [:a 1] [:b 2]) (join {:a 1 :b 2}))) (assert (= (str [:a 1] "," [:b 2]) (join "," {:a 1 :b 2}))) -(.log console "test split") +(print "test split") (assert (= [""] (split "" #"\s"))) (assert (= ["hello"] (split "hello" #"world"))) (assert (= ["q" "w" "e" "r" "t" "y" "u" "i" "o" "p"] (split "q1w2e3r4t5y6u7i8o9p" #"\d+")))