summary refs log tree commit diff stats
path: root/tests/fields
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2015-09-04 23:04:32 +0200
committerAdam Strzelecki <ono@java.pl>2015-09-04 23:04:32 +0200
commite80465dacf50f260abec30ae57d37b298c93fd83 (patch)
tree393394f8353a4adb49f95e6f13da1fd41681b7b3 /tests/fields
parentac9c1cd6b980d4f00eeb52d1109d8e2c8cd21213 (diff)
downloadNim-e80465dacf50f260abec30ae57d37b298c93fd83.tar.gz
tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
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):