activated more tests, allow input in test spec
This commit is contained in:
parent
e012eb1001
commit
9c2365d5c2
26 changed files with 223 additions and 124 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue