summary refs log tree commit diff stats
path: root/tests/bind
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/bind
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/bind')
-rw-r--r--tests/bind/mbind3.nim2
-rw-r--r--tests/bind/tbind1.nim8
-rw-r--r--tests/bind/tbind2.nim2
-rw-r--r--tests/bind/tdatabind.nim12
4 files changed, 12 insertions, 12 deletions
diff --git a/tests/bind/mbind3.nim b/tests/bind/mbind3.nim
index d02bc79d0..aad080223 100644
--- a/tests/bind/mbind3.nim
+++ b/tests/bind/mbind3.nim
@@ -1,5 +1,5 @@
 # Module A
-var 
+var
   lastId = 0
 
 template genId*: expr =
diff --git a/tests/bind/tbind1.nim b/tests/bind/tbind1.nim
index 6593b2307..2665d0b5c 100644
--- a/tests/bind/tbind1.nim
+++ b/tests/bind/tbind1.nim
@@ -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
 
diff --git a/tests/bind/tbind2.nim b/tests/bind/tbind2.nim
index e8e21ad02..d2219765d 100644
--- a/tests/bind/tbind2.nim
+++ b/tests/bind/tbind2.nim
@@ -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)
diff --git a/tests/bind/tdatabind.nim b/tests/bind/tdatabind.nim
index afa8aa47b..124faee6f 100644
--- a/tests/bind/tdatabind.nim
+++ b/tests/bind/tdatabind.nim
@@ -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)