updated tests to be executed
This commit is contained in:
parent
8ea72bdcea
commit
e012eb1001
57 changed files with 341 additions and 90 deletions
|
|
@ -1,3 +1,11 @@
|
|||
|
||||
discard """
|
||||
output: '''
|
||||
test the improved readline handling that does not care whether its
|
||||
Macintosh, Unix or Windows text format.
|
||||
'''
|
||||
"""
|
||||
|
||||
# test the improved readline handling that does not care whether its
|
||||
# Macintosh, Unix or Windows text format.
|
||||
|
||||
|
|
@ -8,5 +16,6 @@ var
|
|||
if open(inp, "tests/misc/treadln.nim"):
|
||||
while not endOfFile(inp):
|
||||
line = readLine(inp)
|
||||
echo("#" & line & "#")
|
||||
if line.len >= 2 and line[0] == '#' and line[1] == ' ':
|
||||
echo line[2..^1]
|
||||
close(inp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue