aboutsummaryrefslogtreecommitdiff
path: root/tests/mycology.nim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/mycology.nim14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/mycology.nim b/tests/mycology.nim
new file mode 100644
index 0000000..54650a2
--- /dev/null
+++ b/tests/mycology.nim
@@ -0,0 +1,14 @@
+import ../src/field
+import ../src/interpreter
+import ../src/pointer
+
+import unittest
+
+suite "Mycology":
+ const filename = "mycology/mycology.b98"
+ var f = Load(filename)
+ check f != nil
+ let argv = @[filename]
+ var p = NewPointer(argv = argv)
+ let v = NewInterpreter(f, p)[].Run()
+ check v == 15