Skip to content

Commit 35f1a87

Browse files
committed
chore(tests): add runtime tests using CHECK_TYPE_OF super instruction
1 parent f312f84 commit 35f1a87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unittests/resources/LangSuite/vm-tests.ark

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,12 @@
133133
(test:eq (type 1) "Number")
134134
(test:eq (type "") "String")
135135
(test:eq (type make) "Function")
136+
# CHECK_TYPE_OF
137+
((fun () (test:expect (= (type make) "Function"))))
136138
(test:eq (type print) "CProc")
137139
(test:eq (type closure) "Closure")
140+
# CHECK_TYPE_OF
141+
((fun () (test:expect (= (type closure) "Closure"))))
138142
(test:eq (type nil) "Nil")
139143
(test:eq (type true) "Bool")
140144
(test:eq (type false) "Bool")

0 commit comments

Comments
 (0)