Skip to content

Commit

Permalink
additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
Garklein authored and kanaka committed Aug 4, 2021
1 parent c7d43f6 commit 1c76e85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions impls/tests/step9_try.mal
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1c76e85

Please sign in to comment.