summary refs log tree commit diff stats
path: root/tests/trmacros
diff options
context:
space:
mode:
Diffstat (limited to 'tests/trmacros')
-rw-r--r--tests/trmacros/targlist.nim4
-rw-r--r--tests/trmacros/tcse.nim2
-rw-r--r--tests/trmacros/tmatrix.nim2
-rw-r--r--tests/trmacros/tstar.nim2
-rw-r--r--tests/trmacros/tstmtlist.nim4
5 files changed, 7 insertions, 7 deletions
diff --git a/tests/trmacros/targlist.nim b/tests/trmacros/targlist.nim
index 321b3d5d2..f9d2cb6c6 100644
--- a/tests/trmacros/targlist.nim
+++ b/tests/trmacros/targlist.nim
@@ -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"
diff --git a/tests/trmacros/tcse.nim b/tests/trmacros/tcse.nim
index ff04f7d83..023a8f298 100644
--- a/tests/trmacros/tcse.nim
+++ b/tests/trmacros/tcse.nim
@@ -6,7 +6,7 @@ template cse{f(a, a, x)}(a: expr{(nkDotExpr|call|nkBracketExpr)&noSideEffect},
                          f: expr, x: varargs[expr]): expr =
   let aa = a
   f(aa, aa, x)+4
-  
+
 var
   a: array[0..10, int]
   i = 3
diff --git a/tests/trmacros/tmatrix.nim b/tests/trmacros/tmatrix.nim
index c825a7792..f409434c5 100644
--- a/tests/trmacros/tmatrix.nim
+++ b/tests/trmacros/tmatrix.nim
@@ -24,6 +24,6 @@ macro optOps{ (`+`|`-`|`*`) ** a }(a: TMat): expr =
 
 var x, y, z: TMat
 
-echo x + y * z - x 
+echo x + y * z - x
 
 #echo x + y + z
diff --git a/tests/trmacros/tstar.nim b/tests/trmacros/tstar.nim
index 8443268f4..536289ff0 100644
--- a/tests/trmacros/tstar.nim
+++ b/tests/trmacros/tstar.nim
@@ -4,7 +4,7 @@ discard """
 
 var
   calls = 0
-  
+
 proc `&&`(s: varargs[string]): string =
   result = s[0]
   for i in 1..len(s)-1: result.add s[i]
diff --git a/tests/trmacros/tstmtlist.nim b/tests/trmacros/tstmtlist.nim
index 20cb5d688..5202f778b 100644
--- a/tests/trmacros/tstmtlist.nim
+++ b/tests/trmacros/tstmtlist.nim
@@ -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"