renamed writeln to writeLine in tests
This commit is contained in:
parent
b6252af5c6
commit
69e15ac32f
39 changed files with 456 additions and 456 deletions
|
|
@ -3,7 +3,7 @@ discard """
|
|||
"""
|
||||
|
||||
proc f(x: varargs[string, `$`]) = discard
|
||||
template optF{f(x)}(x: varargs[expr]) =
|
||||
writeln(stdout, x)
|
||||
template optF{f(x)}(x: varargs[expr]) =
|
||||
writeLine(stdout, x)
|
||||
|
||||
f 1, 2, false, 3, "ha"
|
||||
|
|
|
|||
|
|
@ -7,13 +7,13 @@ discard """
|
|||
|
||||
template optWrite{
|
||||
write(f, x)
|
||||
((write|writeln){w})(f, y)
|
||||
((write|writeLine){w})(f, y)
|
||||
}(x, y: varargs[expr], f, w: expr) =
|
||||
w(f, "|", x, y, "|")
|
||||
|
||||
if true:
|
||||
echo "0"
|
||||
write stdout, "1"
|
||||
writeln stdout, "2"
|
||||
writeLine stdout, "2"
|
||||
write stdout, "3"
|
||||
echo "4"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue