Skip to content

Commit 0937dc4

Browse files
committed
chore(tests): adding a small test calling 'disassemble' builtin, so that the bytecode reader is somewhat covered by tests
1 parent 8bd0fca commit 0937dc4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
(import std.Testing)
22
(import std.List)
33

4+
(let foo (fun ((mut a) (ref b) c)
5+
(+ a (* b c))))
6+
47
(test:suite builtin {
58
(test:case "time" {
69
(let old (time))
@@ -18,4 +21,7 @@
1821
"should not find any number outside the given range")
1922

2023
(let r (random))
21-
(test:expect (and (<= r 2147483647) (>= r -2147483648))) })})
24+
(test:expect (and (<= r 2147483647) (>= r -2147483648))) })
25+
26+
(test:case "disassemble" {
27+
(disassemble foo) }) })

0 commit comments

Comments
 (0)