summary refs log tree commit diff stats
path: root/tests/ambsym
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/ambsym
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/ambsym')
-rw-r--r--tests/ambsym/mambsym1.nim20
-rw-r--r--tests/ambsym/mambsym2.nim6
-rw-r--r--tests/ambsym/mambsys1.nim14
-rw-r--r--tests/ambsym/mambsys2.nim8
-rw-r--r--tests/ambsym/tambsym.nim16
-rw-r--r--tests/ambsym/tambsym2.nim4
-rw-r--r--tests/ambsym/tambsym3.nim16
7 files changed, 42 insertions, 42 deletions
diff --git a/tests/ambsym/mambsym1.nim b/tests/ambsym/mambsym1.nim
index d9d57b5e5..c4902b1b4 100644
--- a/tests/ambsym/mambsym1.nim
+++ b/tests/ambsym/mambsym1.nim
@@ -1,10 +1,10 @@
-import mambsym2 # import TExport

-

-type

-  TExport* = enum x, y, z

-  TOtherEnum* = enum mDec, mInc, mAssign

-

-proc ha() =

-  var

-    x: TExport # no error

-  discard

+import mambsym2 # import TExport
+
+type
+  TExport* = enum x, y, z
+  TOtherEnum* = enum mDec, mInc, mAssign
+
+proc ha() =
+  var
+    x: TExport # no error
+  discard
diff --git a/tests/ambsym/mambsym2.nim b/tests/ambsym/mambsym2.nim
index eac8de6ba..21d980073 100644
--- a/tests/ambsym/mambsym2.nim
+++ b/tests/ambsym/mambsym2.nim
@@ -1,3 +1,3 @@
-type

-  TExport* = enum a, b, c

-  

+type
+  TExport* = enum a, b, c
+
diff --git a/tests/ambsym/mambsys1.nim b/tests/ambsym/mambsys1.nim
index 04f9561d3..22e54cb94 100644
--- a/tests/ambsym/mambsys1.nim
+++ b/tests/ambsym/mambsys1.nim
@@ -1,7 +1,7 @@
-import mambsys2 # import TExport

-

-type

-  TExport* = enum x, y, z

-

-proc foo*(x: int) =

-  discard

+import mambsys2 # import TExport
+
+type
+  TExport* = enum x, y, z
+
+proc foo*(x: int) =
+  discard
diff --git a/tests/ambsym/mambsys2.nim b/tests/ambsym/mambsys2.nim
index d59706865..ef63e4f7e 100644
--- a/tests/ambsym/mambsys2.nim
+++ b/tests/ambsym/mambsys2.nim
@@ -1,4 +1,4 @@
-type

-  TExport* = enum x, y, z # exactly the same type!

-

-proc foo*(x: int) = discard

+type
+  TExport* = enum x, y, z # exactly the same type!
+
+proc foo*(x: int) = discard
diff --git a/tests/ambsym/tambsym.nim b/tests/ambsym/tambsym.nim
index 902274648..d9115e16d 100644
--- a/tests/ambsym/tambsym.nim
+++ b/tests/ambsym/tambsym.nim
@@ -3,13 +3,13 @@ discard """
   line: 11
   errormsg: "ambiguous identifier"
 """
-# Test ambiguous symbols

-

-import mambsym1, mambsym2

-

-var

-  v: TExport #ERROR_MSG ambiguous identifier

-

-v = y

+# Test ambiguous symbols
+
+import mambsym1, mambsym2
+
+var
+  v: TExport #ERROR_MSG ambiguous identifier
+
+v = y
 
 
diff --git a/tests/ambsym/tambsym2.nim b/tests/ambsym/tambsym2.nim
index c3b997549..8e288e73a 100644
--- a/tests/ambsym/tambsym2.nim
+++ b/tests/ambsym/tambsym2.nim
@@ -8,12 +8,12 @@ type
   TMyType = object
     len: int
     data: string
-    
+
 proc len(x: TMyType): int {.inline.} = return x.len
 
 proc x(s: TMyType, len: int) =
   writeLine(stdout, len(s))
-  
+
 var
   m: TMyType
 m.len = 7
diff --git a/tests/ambsym/tambsym3.nim b/tests/ambsym/tambsym3.nim
index ed8a3058a..b25dadfd6 100644
--- a/tests/ambsym/tambsym3.nim
+++ b/tests/ambsym/tambsym3.nim
@@ -3,13 +3,13 @@ discard """
   line: 11
   errormsg: "ambiguous identifier"
 """
-# Test ambiguous symbols

-

-import mambsym1, times

-

-var

-  v = mDec #ERROR_MSG ambiguous identifier

-

-writeLine(stdout, ord(v))

+# Test ambiguous symbols
+
+import mambsym1, times
+
+var
+  v = mDec #ERROR_MSG ambiguous identifier
+
+writeLine(stdout, ord(v))