1
1
mirror of https://github.com/kanaka/mal.git synced 2024-10-05 18:08:55 +03:00

additional test

This commit is contained in:
Garklein 2021-07-21 11:27:09 -04:00 committed by Joel Martin
parent c7d43f663b
commit 1c76e857f8

View File

@ -396,3 +396,9 @@
;=>:abc
(keyword? (first (keys {":abc" 123 ":def" 456})))
;=>false
;; Testing that hashmaps don't alter function ast
(def! bar (fn* [a] {:foo (get a :foo)}))
(bar {:foo (fn* [x] x)})
(bar {:foo 3})
;; shouldn't give an error