megatest can be executed
This commit is contained in:
parent
fb1f5c62b5
commit
2a4c09ff88
22 changed files with 150 additions and 130 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue