updated tests to be executed

This commit is contained in:
Arne Döring 2018-11-14 23:14:16 +01:00 • committed by Araq
commit e012eb1001
57 changed files with 341 additions and 90 deletions

View file

@ -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)