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

@ -1,5 +1,5 @@
# Module A
var
var
lastId = 0
template genId*: expr =

View file

@ -6,14 +6,14 @@ discard """
proc p1(x: int8, y: int): int = return x + y
template tempBind(x, y: expr): expr =
template tempBind(x, y: expr): expr =
bind p1
p1(x, y)
p1(x, y)
proc p1(x: int, y: int8): int = return x - y
# This is tricky: the call to ``p1(1'i8, 2'i8)`` should not fail in line 6,
# because it is not ambiguous there. But it is ambiguous after line 8.
# This is tricky: the call to ``p1(1'i8, 2'i8)`` should not fail in line 6,
# because it is not ambiguous there. But it is ambiguous after line 8.
echo tempBind(1'i8, 2'i8) #OUT 3

View file

@ -8,7 +8,7 @@ discard """
proc p1(x: int8, y: int): int = return x + y
proc p1(x: int, y: int8): int = return x - y
template tempBind(x, y: expr): expr =
template tempBind(x, y: expr): expr =
(bind p1(x, y)) #ERROR_MSG ambiguous call
echo tempBind(1'i8, 2'i8)

View file

@ -31,14 +31,14 @@ proc newProperty*[T](value: T): TProperty[T] =
proc setter(property: var TProperty[T], v: T) =
property.value = v
# fire event here
var args: TValueEventArgs[T]
args.Property = property
property.EEmitter.emit(property.ValueChanged, args)
prop.setProc = setter
return prop
proc `prop`[T] (p: TProperty[T]): T =
@ -56,7 +56,7 @@ proc `$`[T] (p: TProperty[T]): string =
proc propertyBind*[T](p1: var TProperty[T], p2: var TProperty[T]) =
p1.Binders.add(p2)
# make handler -> handler[T] so trigger even more generics bugs ...
proc handler(e: TEventArgs) =
type TEA = TValueEventArgs[T]
@ -77,9 +77,9 @@ proc `->`[T](p1: var TProperty[T], p2: var TProperty[T]) =
when isMainModule:
# Initial value testing
var myProp = newProperty(5)
echo(myProp)
myProp ~= 7 # Temp operator until overloading of '=' is implemented.
echo(myProp)