From 6b39b47abcf5c528dbaf84ca75b693d1fc4da004 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 30 Apr 2020 22:47:59 +0200 Subject: hotfix: make tcompilerapi green again --- tests/compilerapi/tcompilerapi.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/compilerapi/tcompilerapi.nim b/tests/compilerapi/tcompilerapi.nim index edeaa2ba5..9d5e0e3f2 100644 --- a/tests/compilerapi/tcompilerapi.nim +++ b/tests/compilerapi/tcompilerapi.nim @@ -17,7 +17,8 @@ import std / [os] proc main() = let std = findNimStdLibCompileTime() - var intr = createInterpreter("myscript.nim",[std, parentDir(currentSourcePath)]) + var intr = createInterpreter("myscript.nim", [std, parentDir(currentSourcePath), + std / "pure", std / "core"]) intr.implementRoutine("*", "exposed", "addFloats", proc (a: VmArgs) = setResult(a, getFloat(a, 0) + getFloat(a, 1) + getFloat(a, 2)) ) @@ -46,7 +47,7 @@ block issue9180: proc evalString(code: string, moduleName = "script.nim") = let stream = llStreamOpen(code) let std = findNimStdLibCompileTime() - var intr = createInterpreter(moduleName, [std]) + var intr = createInterpreter(moduleName, [std, std / "pure", std / "core"]) intr.evalScript(stream) destroyInterpreter(intr) llStreamClose(stream) -- cgit 1.4.1-2-gfad0 6'>refs log blame commit diff stats
path: root/lib/pure/encodings.nim
blob: ce4238409272592156a23e13e9d42dade37136f3 (plain) (tree)
1
2
3
4