Support Nim 1.2
This commit is contained in:
parent
5fb40e4ffd
commit
8a3cf6778d
3 changed files with 13 additions and 11 deletions
|
|
@ -47,10 +47,12 @@ suite "output stream":
|
|||
# fileContents = readFile(tempFilePath).string.bytes
|
||||
memStreamContents = memStream.getOutput
|
||||
|
||||
check altOutput == memStreamContents
|
||||
# check altOutput == fileContents
|
||||
check altOutput == makeOpenArray(cast[ptr byte](buffer),
|
||||
existingBufferStream.pos)
|
||||
let outputsMatch =
|
||||
altOutput == memStreamContents and
|
||||
altOutput == makeOpenArray(cast[ptr byte](buffer),
|
||||
existingBufferStream.pos)
|
||||
|
||||
check outputsMatch
|
||||
|
||||
test "no appends produce an empty output":
|
||||
checkOutputsMatch()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue