discard """ matrix: "--mm:refc; --mm:orc" """ # xxx move to here other tests that belong here; io is a proper module import std/os from stdtest/specialpaths import buildDir import std/[assertions, syncio] block: # readChars let file = buildDir / "D20201118T205105.txt" let s = "he\0l\0lo" writeFile(file, s) defer: removeFile(file) let f = open(file) defer: close(f) let n = f.getFileInfo.blockSize var buf = newString(n) template fn = let n2 = f.readChars(buf) doAssert n2 == s.len doAssert buf[0..