summary refs log tree commit diff stats
path: root/tests/run/tfinally2.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-03-16 20:08:39 +0100
committerAraq <rumpf_a@web.de>2013-03-16 20:08:39 +0100
commitf24f9fec1db133d5ce24815cbf9c36907229720b (patch)
treecc76aa9d4ee3d1ff11b7604d303caf29dc2fdb07 /tests/run/tfinally2.nim
parent2782e885915e5405f878517358370255aea9488d (diff)
parent109d1ce85d288bb8460dc342dc83577aa07634c1 (diff)
downloadNim-f24f9fec1db133d5ce24815cbf9c36907229720b.tar.gz
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'tests/run/tfinally2.nim')
-rwxr-xr-xtests/run/tfinally2.nim17
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/run/tfinally2.nim b/tests/run/tfinally2.nim
index 3ed212a7c..e1e8d4c7e 100755
--- a/tests/run/tfinally2.nim
+++ b/tests/run/tfinally2.nim
@@ -1,6 +1,9 @@
 discard """
   file: "tfinally2.nim"
-  output: "ABCD"
+  output: '''A
+B
+C
+D'''
 """
 # Test break in try statement:
 
@@ -11,15 +14,15 @@ proc main: int =
         try:
           break AB
         finally:
-          stdout.write("A")
-        stdout.write("skipped")
+          echo("A")
+        echo("skipped")
       finally: 
         block B:
-          stdout.write("B")
-      stdout.write("skipped")
-    stdout.write("C")
+          echo("B")
+      echo("skipped")
+    echo("C")
   finally:
-    stdout.writeln("D")
+    echo("D")
     
 discard main() #OUT ABCD