diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-08-13 13:02:52 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-08-13 13:02:52 +0200 |
commit | 975114e114c53601287393359c0d823b2c53a315 (patch) | |
tree | de740cb1201650b4db79008c93326ce621e27a67 /tests/template | |
parent | 96e0b56a55ba893c69ef9add60b1dfaa493ffb0e (diff) | |
download | Nim-975114e114c53601287393359c0d823b2c53a315.tar.gz |
make more tests green
Diffstat (limited to 'tests/template')
-rw-r--r-- | tests/template/mgensym_generic_cross_module.nim | 4 | ||||
-rw-r--r-- | tests/template/tdefault_nil.nim | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/template/mgensym_generic_cross_module.nim b/tests/template/mgensym_generic_cross_module.nim index 80b681db4..ea88f67e6 100644 --- a/tests/template/mgensym_generic_cross_module.nim +++ b/tests/template/mgensym_generic_cross_module.nim @@ -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 diff --git a/tests/template/tdefault_nil.nim b/tests/template/tdefault_nil.nim index c5c372d9e..311a6c090 100644 --- a/tests/template/tdefault_nil.nim +++ b/tests/template/tdefault_nil.nim @@ -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: |