mirror of
https://github.com/kanaka/mal.git
synced 2024-11-11 00:52:44 +03:00
Go: modified error messages
This commit is contained in:
parent
ed1819f423
commit
3932a29be3
@ -1,6 +1,6 @@
|
|||||||
;; Testing evaluation of excessive arguments
|
;; Testing evaluation of excessive arguments
|
||||||
(+ 1 2 3)
|
(+ 1 2 3)
|
||||||
;=>Error: wrong number of arguments
|
;=>Error: wrong number of arguments (3 instead of 2)
|
||||||
|
|
||||||
;; Valid call
|
;; Valid call
|
||||||
(+ 1 2)
|
(+ 1 2)
|
||||||
@ -9,15 +9,15 @@
|
|||||||
|
|
||||||
;; Testing evaluation of missing arguments
|
;; Testing evaluation of missing arguments
|
||||||
(+ 1)
|
(+ 1)
|
||||||
;=>Error: wrong number of arguments
|
;=>Error: wrong number of arguments (1 instead of 2)
|
||||||
|
|
||||||
;; Testing evaluation of missing arguments
|
;; Testing evaluation of missing arguments
|
||||||
(+)
|
(+)
|
||||||
;=>Error: wrong number of arguments
|
;=>Error: wrong number of arguments (0 instead of 2)
|
||||||
|
|
||||||
;; Testing evaluation of excessive arguments
|
;; Testing evaluation of excessive arguments
|
||||||
(= 1 2 3)
|
(= 1 2 3)
|
||||||
;=>Error: wrong number of arguments
|
;=>Error: wrong number of arguments (3 instead of 2)
|
||||||
|
|
||||||
;; Valid call
|
;; Valid call
|
||||||
(= 1 2)
|
(= 1 2)
|
||||||
@ -26,9 +26,9 @@
|
|||||||
|
|
||||||
;; Testing evaluation of missing arguments
|
;; Testing evaluation of missing arguments
|
||||||
(= 1)
|
(= 1)
|
||||||
;=>Error: wrong number of arguments
|
;=>Error: wrong number of arguments (1 instead of 2)
|
||||||
|
|
||||||
;; Testing evaluation of missing arguments
|
;; Testing evaluation of missing arguments
|
||||||
(=)
|
(=)
|
||||||
;=>Error: wrong number of arguments
|
;=>Error: wrong number of arguments (0 instead of 2)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user