Fix tests some more
This commit is contained in:
parent
ee99771afa
commit
cb3c99fe1f
11 changed files with 22 additions and 25 deletions
|
|
@ -215,7 +215,7 @@ proc manyLoc(r: var TResults, cat: Category, options: string) =
|
|||
for kind, dir in os.walkDir("tests/manyloc"):
|
||||
if kind == pcDir:
|
||||
let mainfile = findMainFile(dir)
|
||||
if mainfile != ".nim":
|
||||
if mainfile != "":
|
||||
testNoSpec r, makeTest(mainfile, options, cat)
|
||||
|
||||
proc compileExample(r: var TResults, pattern, options: string, cat: Category) =
|
||||
|
|
|
|||
|
|
@ -146,7 +146,6 @@ proc codegenCheck(test: TTest, check: string, given: var TSpec) =
|
|||
try:
|
||||
let (path, name, ext2) = test.name.splitFile
|
||||
let genFile = generatedFile(path, name, test.target)
|
||||
echo genFile
|
||||
let contents = readFile(genFile).string
|
||||
if check[0] == '\\':
|
||||
# little hack to get 'match' support:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue