summary refs log tree commit diff stats
path: root/tests/template
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-08-22 15:43:36 +0200
committerAraq <rumpf_a@web.de>2018-08-22 15:43:36 +0200
commiteeafb1a7207749564876bfd96953c15e4f5a8472 (patch)
tree9ce1c375bc0ee766895cc407befadb5a6e6a392a /tests/template
parent27f488e5d9ad0e40b23fba7ab1a8b713c823e92c (diff)
downloadNim-eeafb1a7207749564876bfd96953c15e4f5a8472.tar.gz
make tdefault_nil test compile again
Diffstat (limited to 'tests/template')
-rw-r--r--tests/template/tdefault_nil.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/template/tdefault_nil.nim b/tests/template/tdefault_nil.nim
index 311a6c090..783f77388 100644
--- a/tests/template/tdefault_nil.nim
+++ b/tests/template/tdefault_nil.nim
@@ -3,7 +3,7 @@
 import sequtils, os
 
 template glob_rst(basedir: string = ""): untyped =
-  if baseDir.isNil:
+  if baseDir.len == 0:
     to_seq(walk_files("*.rst"))
   else:
     to_seq(walk_files(basedir/"*.rst"))