Fixed tests.

This commit is contained in:
Dominik Picheta 2015-12-24 17:54:58 +00:00
commit 0a1b583392
3 changed files with 3 additions and 6 deletions

View file

@ -102,7 +102,7 @@ proc validatePackageInfo(pkgInfo: PackageInfo, path: string) =
if pkgInfo.name.normalize != path.splitFile.name.normalize:
raise newValidationError(
"The .nimble file name must match name specified inside it.", false)
"The .nimble file name must match name specified inside " & path, false)
if pkgInfo.version == "":
raise newValidationError("Incorrect .nimble file: " & path &

View file

@ -13,6 +13,3 @@ requires "nim >= 0.12.1"
task test, "test description":
echo(5+5)
task example, "Build and run examples for current platform":
setCommand "c"

View file

@ -70,13 +70,13 @@ test "issue #126":
let (output, exitCode) = execCmdEx("../../" & path & " install")
let lines = output.strip.splitLines()
check exitCode != QuitSuccess
check "Invalid package name: cannot contain '-'" in lines[^1]
check "issue-126 is an invalid package name: cannot contain '-'" in lines[^1]
cd "issue126/b":
let (output1, exitCode1) = execCmdEx("../../" & path & " install")
let lines1 = output1.strip.splitLines()
check exitCode1 != QuitSuccess
check "The .nimble file name must match name specified inside it." in lines1[^1]
check "The .nimble file name must match name specified inside".normalize in lines1[^1].normalize
test "issue #108":
cd "issue108":