activated more tests, allow input in test spec

This commit is contained in:
Arne Döring 2018-11-15 01:57:02 +01:00 • committed by Araq
commit 9c2365d5c2
26 changed files with 223 additions and 124 deletions

View file

@ -1,12 +1,24 @@
discard """
input: "Arne"
output: '''
Hello! What is your name?
Nice name: Arne
fs is: nil
threw exception
'''
"""
import streams
block tstreams:
var outp = newFileStream(stdout)
var inp = newFileStream(stdin)
write(outp, "Hello! What is your name?")
writeLine(outp, "Hello! What is your name?")
var line = readLine(inp)
write(outp, "Nice name: " & line)
writeLine(outp, "Nice name: " & line)
block tstreams2: