mirror of https://github.com/status-im/NimYAML.git
Reverted accidentally commited changes
This commit is contained in:
parent
5e00d714eb
commit
927de32d8d
|
@ -103,7 +103,7 @@ proc testsFor(path: string, root: bool = true, titlePrefix: string = ""):
|
||||||
NimNode {.compileTime.} =
|
NimNode {.compileTime.} =
|
||||||
result = newStmtList()
|
result = newStmtList()
|
||||||
let
|
let
|
||||||
baseDir = parentDir(staticExec("pwd"))
|
baseDir = staticExec("pwd")
|
||||||
nimPathRaw = staticExec("which nim")
|
nimPathRaw = staticExec("which nim")
|
||||||
nimPath = if nimPathRaw[0] == '/': nimPathRaw else: baseDir / nimPathRaw
|
nimPath = if nimPathRaw[0] == '/': nimPathRaw else: baseDir / nimPathRaw
|
||||||
title = titlePrefix & slurp(baseDir / path / "title").splitLines()[0]
|
title = titlePrefix & slurp(baseDir / path / "title").splitLines()[0]
|
||||||
|
@ -128,4 +128,4 @@ proc testsFor(path: string, root: bool = true, titlePrefix: string = ""):
|
||||||
|
|
||||||
macro genTests(): untyped = testsFor("doc/snippets/quickstart")
|
macro genTests(): untyped = testsFor("doc/snippets/quickstart")
|
||||||
|
|
||||||
genTests()
|
genTests()
|
Loading…
Reference in New Issue