diff options
author | Araq <rumpf_a@web.de> | 2013-03-16 20:08:39 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-03-16 20:08:39 +0100 |
commit | f24f9fec1db133d5ce24815cbf9c36907229720b (patch) | |
tree | cc76aa9d4ee3d1ff11b7604d303caf29dc2fdb07 /tests/run/tfinally.nim | |
parent | 2782e885915e5405f878517358370255aea9488d (diff) | |
parent | 109d1ce85d288bb8460dc342dc83577aa07634c1 (diff) | |
download | Nim-f24f9fec1db133d5ce24815cbf9c36907229720b.tar.gz |
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'tests/run/tfinally.nim')
-rwxr-xr-x | tests/run/tfinally.nim | 8 |
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 |