tests: Trim .nim files trailing whitespace

via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
This commit is contained in:
Adam Strzelecki 2015-09-04 23:04:32 +02:00
commit e80465dacf
372 changed files with 4486 additions and 4486 deletions

View file

@ -16,7 +16,7 @@ proc main() =
createActorPool(actorPool, 1)
var some_data: some_type
var inchannel = spawn(actorPool, some_data, thread_proc)
var recv_data = ^inchannel
close(inchannel[])

View file

@ -32,7 +32,7 @@ proc produce() {.thread.} =
close(input)
m.k = mEof
chan.send(m)
open(chan)
createThread[void](consumer, consume)
createThread[void](producer, produce)

View file

@ -36,9 +36,9 @@ proc echoLeTree(n: PNode) =
echo it.data
it = it.le
proc threadFunc(interval: tuple[a, b: int]) {.thread.} =
proc threadFunc(interval: tuple[a, b: int]) {.thread.} =
doNothing()
for i in interval.a..interval.b:
for i in interval.a..interval.b:
var r = buildTree(i)
echoLeTree(r) # for local data
echoLeTree(root) # and the same for foreign data :-)

View file

@ -34,9 +34,9 @@ proc echoLeTree(n: PNode) =
echo it.data
it = it.le
proc threadFunc(interval: tuple[a, b: int]) {.thread.} =
proc threadFunc(interval: tuple[a, b: int]) {.thread.} =
doNothing()
for i in interval.a..interval.b:
for i in interval.a..interval.b:
var r = buildTree(i)
echoLeTree(r) # for local data
root = buildTree(2) # BAD!

View file

@ -4,7 +4,7 @@ discard """
cmd: "nim $target --hints:on --threads:on $options $file"
"""
var
var
global: string = "test string"
t: TThread[void]

View file

@ -31,5 +31,5 @@ while true:
echo "Finished listening"
joinThread(thr)
joinThread(thr)
close(chan)