Skip to content

Commit

Permalink
Fix bug in map: should pass args as list
Browse files Browse the repository at this point in the history
This appeared only for variadic function which is used in EVAL.

Added a test to step 9 to catch this earlier.
  • Loading branch information
bendudson committed Dec 29, 2017
1 parent 40eb57d commit f86d275
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/step9_try.mal
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@
(map (fn* (a) (* 2 a)) [1 2 3])
;=>(2 4 6)

(map (fn* [& args] (list? args)) [1 2])
;=>(true true)

;; Testing vector functions

(vector? [10 11])
Expand Down

0 comments on commit f86d275

Please sign in to comment.