Fixes "can use nimscript's setCommand with flags" test.
This commit is contained in:
parent
dba301f33b
commit
781bed25de
1 changed files with 1 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ const path = "../src/nimble"
|
||||||
test "can compile nimble":
|
test "can compile nimble":
|
||||||
check execCmdEx("nim c " & path).exitCode == QuitSuccess
|
check execCmdEx("nim c " & path).exitCode == QuitSuccess
|
||||||
|
|
||||||
template cd*(dir: string, body: stmt) =
|
template cd*(dir: string, body: untyped) =
|
||||||
## Sets the current dir to ``dir``, executes ``body`` and restores the
|
## Sets the current dir to ``dir``, executes ``body`` and restores the
|
||||||
## previous working dir.
|
## previous working dir.
|
||||||
let lastDir = getCurrentDir()
|
let lastDir = getCurrentDir()
|
||||||
|
|
@ -103,7 +103,6 @@ test "can use nimscript's setCommand with flags":
|
||||||
let (output, exitCode) = execCmdEx("../" & path & " cr")
|
let (output, exitCode) = execCmdEx("../" & path & " cr")
|
||||||
let lines = output.strip.splitLines()
|
let lines = output.strip.splitLines()
|
||||||
check exitCode == QuitSuccess
|
check exitCode == QuitSuccess
|
||||||
check "Hint: operation successful".normalize in lines[^2].normalize
|
|
||||||
check "Hello World".normalize in lines[^1].normalize
|
check "Hello World".normalize in lines[^1].normalize
|
||||||
|
|
||||||
test "can list nimscript tasks":
|
test "can list nimscript tasks":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue