summary refs log tree commit diff stats
path: root/tests/fields
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fields')
-rw-r--r--tests/fields/tfieldindex.nim2
-rw-r--r--tests/fields/tfielditerator.nim2
-rw-r--r--tests/fields/tfielditerator2.nim4
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/fields/tfieldindex.nim b/tests/fields/tfieldindex.nim
index f0674af54..d11c1a8b2 100644
--- a/tests/fields/tfieldindex.nim
+++ b/tests/fields/tfieldindex.nim
@@ -14,7 +14,7 @@ proc indexOf*(t: typedesc, name: string): int =
   for n, x in fieldPairs(d):
     if n == name: return i
     i.inc
-  raise newException(EInvalidValue, "No field " & name & " in type " & 
+  raise newException(EInvalidValue, "No field " & name & " in type " &
     astToStr(t))
 
 echo TMyTuple.indexOf("b")
diff --git a/tests/fields/tfielditerator.nim b/tests/fields/tfielditerator.nim
index 2919aab41..6d15ea05d 100644
--- a/tests/fields/tfielditerator.nim
+++ b/tests/fields/tfielditerator.nim
@@ -28,7 +28,7 @@ proc p(x: string) = echo "a string: ", x
 var x: TMyTuple = ('a', 'b', 5, 6, "abc")
 var y: TMyTuple = ('A', 'b', 5, 9, "abc")
 
-for f in fields(x): 
+for f in fields(x):
   p f
 
 for a, b in fields(x, y):
diff --git a/tests/fields/tfielditerator2.nim b/tests/fields/tfielditerator2.nim
index 70ab9e2ab..c8e230cf5 100644
--- a/tests/fields/tfielditerator2.nim
+++ b/tests/fields/tfielditerator2.nim
@@ -32,7 +32,7 @@ type
     a, b: char
     x, y: int
     z: string
-    
+
   TEnum = enum enA, enB, enC
   TMyCaseObj = object
     case myDisc: TEnum
@@ -51,7 +51,7 @@ proc myobj(a, b: char, x, y: int, z: string): TMyObj =
 var x = myobj('a', 'b', 5, 6, "abc")
 var y = myobj('A', 'b', 5, 9, "abc")
 
-for f in fields(x): 
+for f in fields(x):
   p f
 
 for a, b in fields(x, y):