cleanup nimsuggest tests

This commit is contained in:
Andreas Rumpf
2016-11-05 09:07:51 +01:00
parent 0a6787f956
commit d606f6b348
2 changed files with 4 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ type
script: seq[(string, string)]
const
curDir = when defined(windows): "" else: "./"
curDir = when defined(windows): "" else: ""
DummyEof = "!EOF!"
proc parseTest(filename: string): Test =
@@ -90,7 +90,7 @@ proc runTest(filename: string): int =
proc main() =
var failures = 0
for x in walkFiles("tests/t*.nim"):
for x in walkFiles(getAppDir() / "tests/t*.nim"):
echo "Test ", x
failures += runTest(expandFilename(x))
if failures > 0:

View File

@@ -1,6 +1,6 @@
discard """
$nimsuggest --tester ../nim/lib/pure/strutils.nim
>def ../nim/lib/pure/strutils.nim:2300:6
$nimsuggest --tester lib/pure/strutils.nim
>def lib/pure/strutils.nim:2300:6
def;;skTemplate;;system.doAssert;;proc (cond: bool, msg: string): typed;;*/lib/system.nim;;*;;9;;"";;100
"""