summary refs log tree commit diff stats
path: root/tests/stdlib/tstreams.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tstreams.nim')
-rw-r--r--tests/stdlib/tstreams.nim15
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/stdlib/tstreams.nim b/tests/stdlib/tstreams.nim
index 559824d85..354bdf60f 100644
--- a/tests/stdlib/tstreams.nim
+++ b/tests/stdlib/tstreams.nim
@@ -1,12 +1,17 @@
 discard """
-input: "Arne"
-output: '''
+  input: "Arne"
+  output: '''
 Hello! What is your name?
 Nice name: Arne
 fs is: nil
 
 threw exception
 '''
+  nimout: '''
+I
+AM
+GROOT
+'''
 disabled: "windows"
 """
 
@@ -38,3 +43,9 @@ block tstreams3:
     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