diff options
author | Arne Döring <arne.doering@gmx.net> | 2018-12-03 19:12:59 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-12-11 21:23:21 +0100 |
commit | 2a4c09ff8887350ec3fa283fe8d562e71b68406b (patch) | |
tree | bc09dd0a9b3960b1d4c194aa13d159711bd9a423 /tests/compilerapi | |
parent | fb1f5c62b5e74b1a532ddfe9d6c373fc61eff878 (diff) | |
download | Nim-2a4c09ff8887350ec3fa283fe8d562e71b68406b.tar.gz |
megatest can be executed
Diffstat (limited to 'tests/compilerapi')
-rw-r--r-- | tests/compilerapi/tcompilerapi.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/compilerapi/tcompilerapi.nim b/tests/compilerapi/tcompilerapi.nim index 30007eff0..2a7db04eb 100644 --- a/tests/compilerapi/tcompilerapi.nim +++ b/tests/compilerapi/tcompilerapi.nim @@ -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") - |