1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-21 10:37:58 +03:00
mal/go/tests/step2_eval.mal

35 lines
583 B
Plaintext

;; Testing evaluation of excessive arguments
(+ 1 2 3)
;=>Error: wrong number of arguments
;; Valid call
(+ 1 2)
;=>3
;; Testing evaluation of missing arguments
(+ 1)
;=>Error: wrong number of arguments
;; Testing evaluation of missing arguments
(+)
;=>Error: wrong number of arguments
;; Testing evaluation of excessive arguments
(- 1 2 3)
;=>Error: wrong number of arguments
;; Valid call
(- 1 2)
;=>-1
;; Testing evaluation of missing arguments
(- 1)
;=>Error: wrong number of arguments
;; Testing evaluation of missing arguments
(-)
;=>Error: wrong number of arguments