1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-10 15:40:30 +00:00

Add comptime error test.

This commit is contained in:
Calvin Rose 2019-12-31 12:16:19 -05:00
parent 0b0fb18c42
commit c6b639b939

View File

@ -278,6 +278,7 @@
(assert (= (constantly) (constantly)) "comptime 1")
(assert-error "arity issue in macro" (eval '(each [])))
(assert-error "comptime issue" (eval '(comptime (error "oops"))))
(with [f (file/temp)]
(file/write f "foo\n")