Files
Nim/tests/stdlib/treadln.nim
metagn b97d603cd0 some test cleanups & category reorganization (#22010)
* clean up some test categories

* mention exact slice issue

* magics into system

* move trangechecks into overflow

* move tmemory to system

* try fix CI

* try fix CI

* final CI fix
2023-06-06 06:54:07 +02:00

24 lines
495 B
Nim

discard """
output: '''
test the improved readline handling that does not care whether its
Macintosh, Unix or Windows text format.
'''
"""
import std/syncio
# test the improved readline handling that does not care whether its
# Macintosh, Unix or Windows text format.
var
inp: File
line: string
if open(inp, "tests/stdlib/treadln.nim"):
while not endOfFile(inp):
line = readLine(inp)
if line.len >= 2 and line[0] == '#' and line[1] == ' ':
echo line[2..^1]
close(inp)