1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-24 06:03:17 +00:00

Fix comment macro arity #110

This commit is contained in:
Calvin Rose 2019-05-25 22:50:15 -04:00
parent 4c8dd4b96c
commit 698e89aba4
2 changed files with 7 additions and 1 deletions

View File

@ -136,7 +136,7 @@
(defmacro comment
"Ignores the body of the comment."
[])
[&])
(defmacro if-not
"Shorthand for (if (not condition) else then)."

View File

@ -103,4 +103,10 @@
(assert (= (+ ;(range 6)) (myfn 0 1 2 :a 3 :b 4 :c 5)) "keyword args 1")
(assert (= (+ ;(range 6)) (myfn 0 1 2 :a 1 :b 6 :c 5 :d 11)) "keyword args 2")
# Comment macro
(comment 1)
(comment 1 2)
(comment 1 2 3)
(comment 1 2 3 4)
(end-suite)