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

@ -11,7 +11,7 @@ type
PNodeFoo* = ref object of TNode
TSomethingElse = object
TSomethingElse = object
PSomethingElse = ref TSomethingElse
method foo(a: PNode, b: PSomethingElse) = discard

View file

@ -10,7 +10,7 @@ type
x: int
PlusExpr = ref object of Expression
a, b: Expression
method eval(e: Expression): int = quit "to override!"
method eval(e: Literal): int = return e.x
method eval(e: PlusExpr): int = return eval(e.a) + eval(e.b)
@ -18,7 +18,7 @@ method eval(e: PlusExpr): int = return eval(e.a) + eval(e.b)
proc newLit(x: int): Literal =
new(result)
result.x = x
proc newPlus(a, b: Expression): PlusExpr =
new(result)
result.a = a

View file

@ -13,10 +13,10 @@ type
x: int
TParticle = object of TThing
a, b: int
method collide(a, b: TThing) {.inline.} =
echo "collide: thing, thing"
method collide(a: TThing, b: TUnit) {.inline.} =
echo "collide: thing, unit"

View file

@ -26,7 +26,7 @@ var s:ref Test = newTest()
for z in 1..4:
s.doMethod()
break
#works
#for z in 1..4:
# s.doProc()

View file

@ -9,10 +9,10 @@ type
x: T
TParticle = object of TThing
a, b: int
method collide(a, b: TThing) {.inline.} =
quit "to override!"
method collide[T](a: TThing, b: TUnit[T]) {.inline.} =
write stdout, "collide: thing, unit | "