renamed writeln to writeLine in tests
This commit is contained in:
parent
b6252af5c6
commit
69e15ac32f
39 changed files with 456 additions and 456 deletions
|
|
@ -15,10 +15,10 @@ var abclev = levB
|
|||
|
||||
template tstLev(abclev: TLev) =
|
||||
bind tstempl.abclev, `%`
|
||||
writeln(stdout, "global = $1, arg = $2, test = $3" % [
|
||||
writeLine(stdout, "global = $1, arg = $2, test = $3" % [
|
||||
$tstempl.abclev, $abclev, $(tstempl.abclev == abclev)])
|
||||
# evaluates to true, but must be false
|
||||
|
||||
|
||||
tstLev(levA)
|
||||
writeln(stdout, $abclev)
|
||||
writeLine(stdout, $abclev)
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ template withOpenFile(f: expr, filename: string, mode: TFileMode,
|
|||
quit("cannot open for writing: " & filename)
|
||||
|
||||
withOpenFile(txt, "ttempl3.txt", fmWrite):
|
||||
writeln(txt, "line 1")
|
||||
txt.writeln("line 2")
|
||||
writeLine(txt, "line 1")
|
||||
txt.writeLine("line 2")
|
||||
|
||||
var
|
||||
myVar: array[0..1, int]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue