diff options
Diffstat (limited to 'tests/stepA_more.mal')
| -rw-r--r-- | tests/stepA_more.mal | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/stepA_more.mal b/tests/stepA_more.mal index 31eb2bb..aac1bac 100644 --- a/tests/stepA_more.mal +++ b/tests/stepA_more.mal @@ -214,6 +214,9 @@ (dissoc hm3 "a" "b") ;=>{} +(dissoc hm3 "a" "b" "c") +;=>{} + (count (keys hm3)) ;=>2 @@ -236,6 +239,10 @@ (meta f-wm) ;=>{"abc" 1} +(def! f-wm2 ^"str meta" (fn* [a] (+ 1 a))) +(meta f-wm2) +;=>"str meta" + ;; ;; Testing atoms @@ -272,6 +279,8 @@ (swap! a (fn* (a) (* 2 a))) ;=>12 +(swap! a + 3) +;=>15 ;; ;; Testing read-str and eval |
