Archived
1
0
Fork 0

Added submodules with the spec and the mycology test suite

This commit is contained in:
Julien Dessaux 2021-10-07 18:24:48 +02:00
parent e1b1a60bde
commit 8daf3d58fc
5 changed files with 26 additions and 4 deletions

14
tests/mycology.nim Normal file
View file

@ -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