summary refs log tree commit diff stats
path: root/tests/accept
diff options
context:
space:
mode:
Diffstat (limited to 'tests/accept')
-rw-r--r--tests/accept/run/teventemitter.nim2
-rwxr-xr-xtests/accept/run/tofopr.nim (renamed from tests/accept/run/tisopr.nim)4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/accept/run/teventemitter.nim b/tests/accept/run/teventemitter.nim
index 166a0cb30..763f41943 100644
--- a/tests/accept/run/teventemitter.nim
+++ b/tests/accept/run/teventemitter.nim
@@ -4,7 +4,7 @@ type
   TEventArgs = object of TObject
 type
   TEventEmitter = object of TObject
-    events*: TTable[string, TDoublyLinkedList[proc(e : TEventArgs)]]
+    events*: TTable[string, TDoublyLinkedList[proc(e: TEventArgs)]]
 proc on*(emitter: var TEventEmitter, event: string, func: proc(e: TEventArgs)) =
   if not hasKey(emitter.events, event):
     var list: TDoublyLinkedList[proc(e: TEventArgs)]
diff --git a/tests/accept/run/tisopr.nim b/tests/accept/run/tofopr.nim
index 7e7a8f650..f9c21ad16 100755
--- a/tests/accept/run/tisopr.nim
+++ b/tests/accept/run/tofopr.nim
@@ -1,5 +1,5 @@
 discard """
-  file: "tisopr.nim"
+  file: "tofopr.nim"
   output: "falsetrue"
 """
 # Test is operator
@@ -12,7 +12,7 @@ type
   TOtherType = object of TMyType
    
 proc p(x: TMyType): bool = 
-  return x is TOtherType
+  return x of TOtherType
     
 var
   m: TMyType