Skip to content

Commit

Permalink
Testing assoc
Browse files Browse the repository at this point in the history
  • Loading branch information
paultag committed Mar 13, 2013
1 parent daa6443 commit 7f02210
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/native_tests/language.hy
Expand Up @@ -132,7 +132,15 @@
(assert (= *foo* FOO))
(assert (!= *foo* foo)))


(defn test-threading []
"NATIVE: test threading macro"
(assert (= (-> (.upper "a b c d") (.replace "A" "X") (.split))
["X" "B" "C" "D"])))


(defn test-assoc []
"NATIVE: test assoc"
(def vals {"one" "two"})
(assoc vals "two" "three")
(assert (= (get vals "two") "three")))

0 comments on commit 7f02210

Please sign in to comment.