cleanup nimsuggest tests
This commit is contained in:
parent
0a6787f956
commit
d606f6b348
2 changed files with 4 additions and 4 deletions
|
|
@ -11,7 +11,7 @@ type
|
||||||
script: seq[(string, string)]
|
script: seq[(string, string)]
|
||||||
|
|
||||||
const
|
const
|
||||||
curDir = when defined(windows): "" else: "./"
|
curDir = when defined(windows): "" else: ""
|
||||||
DummyEof = "!EOF!"
|
DummyEof = "!EOF!"
|
||||||
|
|
||||||
proc parseTest(filename: string): Test =
|
proc parseTest(filename: string): Test =
|
||||||
|
|
@ -90,7 +90,7 @@ proc runTest(filename: string): int =
|
||||||
|
|
||||||
proc main() =
|
proc main() =
|
||||||
var failures = 0
|
var failures = 0
|
||||||
for x in walkFiles("tests/t*.nim"):
|
for x in walkFiles(getAppDir() / "tests/t*.nim"):
|
||||||
echo "Test ", x
|
echo "Test ", x
|
||||||
failures += runTest(expandFilename(x))
|
failures += runTest(expandFilename(x))
|
||||||
if failures > 0:
|
if failures > 0:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
discard """
|
discard """
|
||||||
$nimsuggest --tester ../nim/lib/pure/strutils.nim
|
$nimsuggest --tester lib/pure/strutils.nim
|
||||||
>def ../nim/lib/pure/strutils.nim:2300:6
|
>def lib/pure/strutils.nim:2300:6
|
||||||
def;;skTemplate;;system.doAssert;;proc (cond: bool, msg: string): typed;;*/lib/system.nim;;*;;9;;"";;100
|
def;;skTemplate;;system.doAssert;;proc (cond: bool, msg: string): typed;;*/lib/system.nim;;*;;9;;"";;100
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue