diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stdlib/tstreams3.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/stdlib/tstreams3.nim b/tests/stdlib/tstreams3.nim index e3b395e05..89f45f275 100644 --- a/tests/stdlib/tstreams3.nim +++ b/tests/stdlib/tstreams3.nim @@ -1,5 +1,10 @@ discard """ output: "threw exception" + nimout: ''' +I +AM +GROOT +''' """ import streams @@ -7,3 +12,9 @@ try: var fs = openFileStream("shouldneverexist.txt") except IoError: echo "threw exception" + +static: + var s = newStringStream("I\nAM\nGROOT") + for line in s.lines: + echo line + s.close |