aboutsummaryrefslogtreecommitdiff
path: root/tests/mycology.nim
blob: 54650a23a7b14b17d4653db252dab1c4ed07464e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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