mirror of
https://github.com/janet-lang/janet
synced 2025-09-10 06:46:08 +00:00
Fix = should have been ==. Add some tests for vm type asserts.
This commit is contained in:
@@ -21,6 +21,11 @@
|
||||
(print e)))
|
||||
x)
|
||||
|
||||
(defmacro assert-error
|
||||
[msg & forms]
|
||||
(def errsym (keyword (gensym)))
|
||||
~(assert (= ,errsym (try (do ,;forms) ([_] ,errsym))) ,msg))
|
||||
|
||||
(defn start-suite [x]
|
||||
(set suite-num x)
|
||||
(print "\nRunning test suite " x " tests...\n "))
|
||||
|
Reference in New Issue
Block a user