summary refs log tree commit diff stats
path: root/tests/effects
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-08-31 17:23:35 +0200
committerAraq <rumpf_a@web.de>2014-08-31 17:23:35 +0200
commitd7d059a68695c10b7fe93f8f452d4aceb90857eb (patch)
tree5213fbd2b62b79b6071302b640d097582e8044bf /tests/effects
parent93eb9c456d4195e4296b0f91d27ba0c3e3ab3f33 (diff)
downloadNim-d7d059a68695c10b7fe93f8f452d4aceb90857eb.tar.gz
more tests green
Diffstat (limited to 'tests/effects')
-rw-r--r--tests/effects/teffects1.nim8
-rw-r--r--tests/effects/teffects2.nim8
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/effects/teffects1.nim b/tests/effects/teffects1.nim
index f73230ff9..bbae857ea 100644
--- a/tests/effects/teffects1.nim
+++ b/tests/effects/teffects1.nim
@@ -1,7 +1,7 @@
 discard """
   line: 2136
   file: "system.nim"
-  errormsg: "can raise an unlisted exception: ref EIO"
+  errormsg: "can raise an unlisted exception: ref IOError"
 """
 
 type
@@ -9,13 +9,13 @@ type
   TObjB = object of TObj
     a, b, c: string
   
-  EIO2 = ref object of EIO
+  IO2Error = ref object of IOError
   
 proc forw: int {. .}
   
-proc lier(): int {.raises: [EIO2].} =
+proc lier(): int {.raises: [IO2Error].} =
   writeln stdout, "arg"
 
 proc forw: int =
-  raise newException(EIO, "arg")
+  raise newException(IOError, "arg")
 
diff --git a/tests/effects/teffects2.nim b/tests/effects/teffects2.nim
index 7e6b17c36..89ad16edc 100644
--- a/tests/effects/teffects2.nim
+++ b/tests/effects/teffects2.nim
@@ -1,6 +1,6 @@
 discard """
   line: 19
-  errormsg: "can raise an unlisted exception: ref EIO"
+  errormsg: "can raise an unlisted exception: ref IOError"
 """
 
 type
@@ -8,13 +8,13 @@ type
   TObjB = object of TObj
     a, b, c: string
   
-  EIO2 = ref object of EIO
+  EIO2 = ref object of IOError
   
 proc forw: int {.raises: [].}
 
-proc lier(): int {.raises: [EIO].} =
+proc lier(): int {.raises: [IOError].} =
   writeln stdout, "arg"
 
 proc forw: int =
-  raise newException(EIO, "arg")
+  raise newException(IOError, "arg")