This commit is contained in:
parent
a7aeabb9d2
commit
0944b0f441
11 changed files with 109 additions and 109 deletions
|
|
@ -301,7 +301,7 @@ proc testNimInAction(r: var TResults, cat: Category, options: string) =
|
|||
testSpec r, makeTest(filename, options, cat), {targetJS}
|
||||
|
||||
template testCPP(filename: untyped) =
|
||||
testSpec r, makeTest(filename, options, cat), {targetCPP}
|
||||
testSpec r, makeTest(filename, options, cat), {targetCpp}
|
||||
|
||||
let tests = [
|
||||
"niminaction/Chapter1/various1",
|
||||
|
|
@ -388,7 +388,7 @@ proc findMainFile(dir: string): string =
|
|||
elif file.endsWith(".nim"):
|
||||
if result.len == 0: result = file
|
||||
inc nimFiles
|
||||
if nimFiles != 1: result.setlen(0)
|
||||
if nimFiles != 1: result.setLen(0)
|
||||
|
||||
proc manyLoc(r: var TResults, cat: Category, options: string) =
|
||||
for kind, dir in os.walkDir("tests/manyloc"):
|
||||
|
|
@ -540,7 +540,7 @@ const MegaTestCat = "megatest"
|
|||
|
||||
proc `&.?`(a, b: string): string =
|
||||
# candidate for the stdlib?
|
||||
result = if b.startswith(a): b else: a & b
|
||||
result = if b.startsWith(a): b else: a & b
|
||||
|
||||
proc processSingleTest(r: var TResults, cat: Category, options, test: string) =
|
||||
let test = testsDir &.? cat.string / test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue