Added submodules with the spec and the mycology test suite
This commit is contained in:
parent
e1b1a60bde
commit
8daf3d58fc
5 changed files with 26 additions and 4 deletions
14
tests/mycology.nim
Normal file
14
tests/mycology.nim
Normal 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
|
Reference in a new issue