mirror of
https://github.com/kanaka/mal.git
synced 2024-10-05 18:08:55 +03:00
additional test
This commit is contained in:
parent
c7d43f663b
commit
1c76e857f8
@ -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
|
Loading…
Reference in New Issue
Block a user