mirror of
https://github.com/janet-lang/janet
synced 2025-01-25 14:46:52 +00:00
Add comptime error test.
This commit is contained in:
parent
0b0fb18c42
commit
c6b639b939
@ -278,6 +278,7 @@
|
|||||||
(assert (= (constantly) (constantly)) "comptime 1")
|
(assert (= (constantly) (constantly)) "comptime 1")
|
||||||
|
|
||||||
(assert-error "arity issue in macro" (eval '(each [])))
|
(assert-error "arity issue in macro" (eval '(each [])))
|
||||||
|
(assert-error "comptime issue" (eval '(comptime (error "oops"))))
|
||||||
|
|
||||||
(with [f (file/temp)]
|
(with [f (file/temp)]
|
||||||
(file/write f "foo\n")
|
(file/write f "foo\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user