From 8daf3d58fc8d989940ed8f8a96dd3a93fe8c0793 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 7 Oct 2021 18:24:48 +0200 Subject: Added submodules with the spec and the mycology test suite --- tests/mycology.nim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/mycology.nim (limited to 'tests/mycology.nim') 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 -- cgit v1.2.3