summary refs log tree commit diff stats
path: root/tests/run/tfinally.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/tfinally.nim
parent2782e885915e5405f878517358370255aea9488d (diff)
parent109d1ce85d288bb8460dc342dc83577aa07634c1 (diff)
downloadNim-f24f9fec1db133d5ce24815cbf9c36907229720b.tar.gz
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'tests/run/tfinally.nim')
-rwxr-xr-xtests/run/tfinally.nim8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/run/tfinally.nim b/tests/run/tfinally.nim
index 29313c3fd..273aac72b 100755
--- a/tests/run/tfinally.nim
+++ b/tests/run/tfinally.nim
@@ -1,6 +1,8 @@
 discard """
   file: "tfinally.nim"
-  output: "came here 3"
+  output: '''came
+here
+3'''
 """
 # Test return in try statement:
 
@@ -9,10 +11,10 @@ proc main: int =
     try:
       return 1
     finally:
-      stdout.write("came ")
+      echo("came")
       return 2
   finally: 
-    stdout.write("here ")
+    echo("here ")
     return 3
     
 echo main() #OUT came here 3