make more tests green

This commit is contained in:
Andreas Rumpf 2018-08-13 13:02:52 +02:00
commit 975114e114
5 changed files with 19 additions and 19 deletions

View file

@ -1,6 +1,6 @@
template makeDomElement(x: untyped, name: string = nil) =
const tag {.gensym.} = if name == nil: astToStr(x) else: name
template makeDomElement(x: untyped, name: string = "") =
const tag {.gensym.} = if name.len == 0: astToStr(x) else: name
proc x*(p: int|float) =
echo tag, p

View file

@ -2,7 +2,7 @@
# bug #2629
import sequtils, os
template glob_rst(basedir: string = nil): untyped =
template glob_rst(basedir: string = ""): untyped =
if baseDir.isNil:
to_seq(walk_files("*.rst"))
else: