mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
10 lines
260 B
Nim
10 lines
260 B
Nim
import std/[memfiles, assertions]
|
|
var inp = memfiles.open("tests/stdlib/tmemlinesBuf.nim")
|
|
var buffer: string = ""
|
|
var lineCount = 0
|
|
for line in lines(inp, buffer):
|
|
lineCount += 1
|
|
|
|
close(inp)
|
|
doAssert lineCount == 9, $lineCount # this file's number of lines
|