mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-04 10:54:42 +00:00
megatest can be executed
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user