Testing assoc
This commit is contained in:
parent
daa6443e7c
commit
7f02210ad1
@ -132,7 +132,15 @@
|
|||||||
(assert (= *foo* FOO))
|
(assert (= *foo* FOO))
|
||||||
(assert (!= *foo* foo)))
|
(assert (!= *foo* foo)))
|
||||||
|
|
||||||
|
|
||||||
(defn test-threading []
|
(defn test-threading []
|
||||||
"NATIVE: test threading macro"
|
"NATIVE: test threading macro"
|
||||||
(assert (= (-> (.upper "a b c d") (.replace "A" "X") (.split))
|
(assert (= (-> (.upper "a b c d") (.replace "A" "X") (.split))
|
||||||
["X" "B" "C" "D"])))
|
["X" "B" "C" "D"])))
|
||||||
|
|
||||||
|
|
||||||
|
(defn test-assoc []
|
||||||
|
"NATIVE: test assoc"
|
||||||
|
(def vals {"one" "two"})
|
||||||
|
(assoc vals "two" "three")
|
||||||
|
(assert (= (get vals "two") "three")))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user