make tests green again

This commit is contained in:
Andreas Rumpf 2018-07-05 19:14:18 +02:00
commit ae82406c8b
13 changed files with 18 additions and 17 deletions

View file

@ -17,7 +17,7 @@ const
var i = 0
for item in items(tabs):
var content = $i
var file: TFile
var file: File
if open(file, changeFileExt(item[1], "html"), fmWrite):
write(file, sunsetTemplate(current=item[1], ticker="", content=content,
tabs=tabs))

View file

@ -3,7 +3,7 @@ template withOpenFile(f: untyped, filename: string, mode: FileMode,
actions: untyped): untyped =
block:
# test that 'f' is implicitly 'injecting':
var f: TFile
var f: File
if open(f, filename, mode):
try:
actions