megatest can be executed

This commit is contained in:
Arne Döring 2018-12-03 19:12:59 +01:00 • committed by Araq
commit 2a4c09ff88
22 changed files with 150 additions and 130 deletions

View file

@ -15,7 +15,7 @@ import std / [os]
proc main() =
let std = findNimStdLibCompileTime()
var intr = createInterpreter("myscript.nim", [std, getAppDir()])
var intr = createInterpreter("myscript.nim",[std, parentDir(currentSourcePath)])
intr.implementRoutine("*", "exposed", "addFloats", proc (a: VmArgs) =
setResult(a, getFloat(a, 0) + getFloat(a, 1) + getFloat(a, 2))
)
@ -51,4 +51,3 @@ block issue9180:
evalString("echo 10+1")
evalString("echo 10+2")