aboutsummaryrefslogtreecommitdiff
path: root/tests/mycology.nim
diff options
context:
space:
mode:
authorJulien Dessaux2021-10-07 18:24:48 +0200
committerJulien Dessaux2021-10-07 18:24:48 +0200
commit8daf3d58fc8d989940ed8f8a96dd3a93fe8c0793 (patch)
treea7e25e3025f4edd569eed9d08cf030d1b08756af /tests/mycology.nim
parentFixed tricky field loading bug (diff)
downloadnimfunge98-8daf3d58fc8d989940ed8f8a96dd3a93fe8c0793.tar.gz
nimfunge98-8daf3d58fc8d989940ed8f8a96dd3a93fe8c0793.tar.bz2
nimfunge98-8daf3d58fc8d989940ed8f8a96dd3a93fe8c0793.zip
Added submodules with the spec and the mycology test suite
Diffstat (limited to 'tests/mycology.nim')
-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