summary refs log tree commit diff stats
path: root/tests/misc
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2018-12-05 00:42:56 +0100
committerAraq <rumpf_a@web.de>2018-12-11 21:23:22 +0100
commit3859878db8e6da15d3513c931e0d811dcf03b250 (patch)
tree79aab58631e0e22adba353143e2fda3f7370c506 /tests/misc
parent2a4c09ff8887350ec3fa283fe8d562e71b68406b (diff)
downloadNim-3859878db8e6da15d3513c931e0d811dcf03b250.tar.gz
megatest checks output and nimout
Diffstat (limited to 'tests/misc')
-rw-r--r--tests/misc/tshadow_magic_type.nim7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/misc/tshadow_magic_type.nim b/tests/misc/tshadow_magic_type.nim
index 6f9716bb9..3176a4596 100644
--- a/tests/misc/tshadow_magic_type.nim
+++ b/tests/misc/tshadow_magic_type.nim
@@ -26,7 +26,6 @@ proc lrange*(key: string): TRedisList =
   foo.str = key
   result = @[foo]
 
-when isMainModule:
-  var p = lrange("mylist")
-  for i in items(p):
-    echo(i.str)
+var p = lrange("mylist")
+for i in items(p):
+  echo(i.str)