mirror of
https://github.com/janet-lang/janet
synced 2025-12-03 23:28:08 +00:00
Fix = should have been ==. Add some tests for vm type asserts.
This commit is contained in:
@@ -122,4 +122,11 @@
|
||||
(def spot (make-dog "spot"))
|
||||
(assert (= "spot says hi!" (:bark spot "hi")) "oo 2")
|
||||
|
||||
# Negative tests
|
||||
|
||||
(assert-error "+ check types" (+ 1 ()))
|
||||
(assert-error "- check types" (- 1 ()))
|
||||
(assert-error "* check types" (* 1 ()))
|
||||
(assert-error "/ check types" (/ 1 ()))
|
||||
|
||||
(end-suite)
|
||||
|
||||
Reference in New Issue
Block a user