Use newlit instead of string
This commit is contained in:
parent
c7f7ca5609
commit
822836cd61
1 changed files with 1 additions and 1 deletions
|
|
@ -511,7 +511,7 @@ proc expandTests(currentDir, currentFile: string): NimNode {.used.} =
|
|||
allTests = newNimNode(nnkStmtList)
|
||||
numTests = newLit(testsModule.tests.len())
|
||||
|
||||
result.add(getAst(createInfo(infoSym, name, numTests, currentDir)))
|
||||
result.add(getAst(createInfo(infoSym, newLit(name), numTests, newLit(currentDir))))
|
||||
|
||||
when defined(debug):
|
||||
echo fmt"Found tests in {name}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue