diff options
author | Julien Dessaux | 2021-10-07 18:24:48 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-10-07 18:24:48 +0200 |
commit | 8daf3d58fc8d989940ed8f8a96dd3a93fe8c0793 (patch) | |
tree | a7e25e3025f4edd569eed9d08cf030d1b08756af /tests/mycology.nim | |
parent | Fixed tricky field loading bug (diff) | |
download | nimfunge98-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.nim | 14 |
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 |