summary refs log tree commit diff stats
path: root/tests/effects
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/effects
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/effects')
-rw-r--r--tests/effects/teffects1.nim6
-rw-r--r--tests/effects/teffects2.nim4
-rw-r--r--tests/effects/teffects3.nim4
-rw-r--r--tests/effects/teffects4.nim4
-rw-r--r--tests/effects/teffects5.nim2
-rw-r--r--tests/effects/teffects6.nim4
-rw-r--r--tests/effects/tsidee1.nim4
-rw-r--r--tests/effects/tsidee2.nim4
-rw-r--r--tests/effects/tsidee3.nim4
-rw-r--r--tests/effects/tsidee4.nim4
10 files changed, 20 insertions, 20 deletions
diff --git a/tests/effects/teffects1.nim b/tests/effects/teffects1.nim
index fad26a8d6..ef76c9130 100644
--- a/tests/effects/teffects1.nim
+++ b/tests/effects/teffects1.nim
@@ -7,11 +7,11 @@ type
   TObj = object {.pure, inheritable.}
   TObjB = object of TObj
     a, b, c: string
-  
+
   IO2Error = ref object of IOError
-  
+
 proc forw: int {. .}
-  
+
 proc lier(): int {.raises: [IO2Error].} =
   writeLine stdout, "arg"
 
diff --git a/tests/effects/teffects2.nim b/tests/effects/teffects2.nim
index a97eacca6..0fa789869 100644
--- a/tests/effects/teffects2.nim
+++ b/tests/effects/teffects2.nim
@@ -7,9 +7,9 @@ type
   TObj = object {.pure, inheritable.}
   TObjB = object of TObj
     a, b, c: string
-  
+
   EIO2 = ref object of IOError
-  
+
 proc forw: int {.raises: [].}
 
 proc lier(): int {.raises: [IOError].} =
diff --git a/tests/effects/teffects3.nim b/tests/effects/teffects3.nim
index 3d597560f..1b18f7b6d 100644
--- a/tests/effects/teffects3.nim
+++ b/tests/effects/teffects3.nim
@@ -8,9 +8,9 @@ type
   TObjB = object of TObj
     a, b, c: string
     fn: proc (): int {.tags: [].}
-  
+
   EIO2 = ref object of EIO
-  
+
 proc raiser(): int {.tags: [TObj, FWriteIO].} =
   writeLine stdout, "arg"
 
diff --git a/tests/effects/teffects4.nim b/tests/effects/teffects4.nim
index e2aa440a9..fd5dd49e2 100644
--- a/tests/effects/teffects4.nim
+++ b/tests/effects/teffects4.nim
@@ -8,12 +8,12 @@ type
   TObjB = object of TObj
     a, b, c: string
     fn: proc (): int {.tags: [FReadIO].}
-  
+
   EIO2 = ref object of EIO
 
 proc q() {.tags: [FIO].} =
   nil
-  
+
 proc raiser(): int =
   writeLine stdout, "arg"
   if true:
diff --git a/tests/effects/teffects5.nim b/tests/effects/teffects5.nim
index d630a6fc4..779b4662c 100644
--- a/tests/effects/teffects5.nim
+++ b/tests/effects/teffects5.nim
@@ -6,7 +6,7 @@ discard """
 proc p(q: proc() ): proc() {.tags: [], raises: [], closure.} =
   return proc () =
     q()
-  
+
 let yay = p(proc () = raise newException(EIO, "IO"))
 
 proc main() {.raises: [], tags: [].} = yay()
diff --git a/tests/effects/teffects6.nim b/tests/effects/teffects6.nim
index 47c85c160..e69fe73b6 100644
--- a/tests/effects/teffects6.nim
+++ b/tests/effects/teffects6.nim
@@ -3,7 +3,7 @@ type
   PMenu = ref object
   PMenuItem = ref object
 
-proc createMenuItem*(menu: PMenu, label: string, 
+proc createMenuItem*(menu: PMenu, label: string,
                     action: proc (i: PMenuItem, p: pointer) {.cdecl.}) = discard
 
 var s: PMenu
@@ -19,7 +19,7 @@ createMenuItem(s, "Go to definition...",
 proc noRaise(x: proc()) {.raises: [].} =
   # unknown call that might raise anything, but valid:
   x()
-  
+
 proc doRaise() {.raises: [EIO].} =
   raise newException(EIO, "IO")
 
diff --git a/tests/effects/tsidee1.nim b/tests/effects/tsidee1.nim
index bd5b32dd7..e486d32e7 100644
--- a/tests/effects/tsidee1.nim
+++ b/tests/effects/tsidee1.nim
@@ -11,8 +11,8 @@ proc dontcare(x: int): int = return x + global
 
 proc SideEffectLyer(x, y: int): int {.noSideEffect.} = #ERROR_MSG 'SideEffectLyer' can have side effects
   return x + y + dontcare(x)
-  
-echo SideEffectLyer(1, 3) 
+
+echo SideEffectLyer(1, 3)
 
 
 
diff --git a/tests/effects/tsidee2.nim b/tests/effects/tsidee2.nim
index e73c89608..5ed541300 100644
--- a/tests/effects/tsidee2.nim
+++ b/tests/effects/tsidee2.nim
@@ -8,9 +8,9 @@ var
 
 proc dontcare(x: int): int = return x
 
-proc SideEffectLyer(x, y: int): int {.noSideEffect.} = 
+proc SideEffectLyer(x, y: int): int {.noSideEffect.} =
   return x + y + dontcare(x)
-  
+
 echo SideEffectLyer(1, 3) #OUT 5
 
 
diff --git a/tests/effects/tsidee3.nim b/tests/effects/tsidee3.nim
index e0c427ab6..e15fbc3d1 100644
--- a/tests/effects/tsidee3.nim
+++ b/tests/effects/tsidee3.nim
@@ -8,9 +8,9 @@ var
 
 proc dontcare(x: int): int {.noSideEffect.} = return x
 
-proc noSideEffect(x, y: int, p: proc (a: int): int {.noSideEffect.}): int {.noSideEffect.} = 
+proc noSideEffect(x, y: int, p: proc (a: int): int {.noSideEffect.}): int {.noSideEffect.} =
   return x + y + dontcare(x)
-  
+
 echo noSideEffect(1, 3, dontcare) #OUT 5
 
 
diff --git a/tests/effects/tsidee4.nim b/tests/effects/tsidee4.nim
index cbebfbd36..2cb88a23e 100644
--- a/tests/effects/tsidee4.nim
+++ b/tests/effects/tsidee4.nim
@@ -9,9 +9,9 @@ var
 
 proc dontcare(x: int): int = return x
 
-proc noSideEffect(x, y: int, p: proc (a: int): int {.noSideEffect.}): int {.noSideEffect.} = 
+proc noSideEffect(x, y: int, p: proc (a: int): int {.noSideEffect.}): int {.noSideEffect.} =
   return x + y + dontcare(x)
-  
+
 echo noSideEffect(1, 3, dontcare) #ERROR_MSG type mismatch
 
 
'oid'>ef975d277 ^
b2f577df2 ^
ef975d277 ^


30bb68d48 ^
aefa0da8a ^


7be092bba ^
b30e237a3 ^




ef975d277 ^

ef975d277 ^
27b7ecbbf ^
7be092bba ^
b30e237a3 ^


ee1192679 ^
b30e237a3 ^






b30e237a3 ^
6e584c42c ^
b30e237a3 ^
27b7ecbbf ^
b30e237a3 ^
d15788d00 ^
6e584c42c ^
b30e237a3 ^
f095e5127 ^
5f943cf4b ^

b30e237a3 ^




3d1805337 ^




4ffe6a828 ^
3d1805337 ^
4ffe6a828 ^
3d1805337 ^






b30e237a3 ^




27b7ecbbf ^

b30e237a3 ^



41587a533 ^

b30e237a3 ^


aa92669d9 ^
b30e237a3 ^

1f85b3b5d ^



b2f577df2 ^
1f85b3b5d ^
7be092bba ^
b30e237a3 ^




7be092bba ^
b30e237a3 ^




ef975d277 ^

3d1805337 ^
9035d15ed ^
0c31686fe ^
ee1192679 ^
25610a2f7 ^
1f85b3b5d ^
b2f577df2 ^
b30e237a3 ^

f9861e1fa ^

7be092bba ^
ef975d277 ^
27b7ecbbf ^
328f19329 ^
25610a2f7 ^
b2f577df2 ^
b30e237a3 ^
6a9baf3fd ^


903ca7828 ^
6a9baf3fd ^
1f85b3b5d ^


b30e237a3 ^


438703f59 ^
b30e237a3 ^
d0438540d ^
b30e237a3 ^





be4526362 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234