Fix tests. Add test for hooks.

This commit is contained in:
Dominik Picheta 2015-12-30 20:20:04 +00:00
commit 1fa209a689
6 changed files with 49 additions and 8 deletions

View file

@ -22,4 +22,19 @@ task cr, "Testing `nimble c -r nimscript.nim` via setCommand":
setCommand "c", "nimscript.nim"
task api, "Testing nimscriptapi module functionality":
echo(getPkgDir())
echo(getPkgDir())
before hooks:
echo("First")
task hooks, "Testing the hooks":
echo("Middle")
after hooks:
echo("last")
before hooks2:
return false
task hooks2, "Testing the hooks again":
echo("Shouldn't happen")