Fix std::io::Write.print test for Windows

This test expected \n to always be the newline, whereas on Windows the
newline is \r\n.
parent 4d0f53f8
Pipeline #37979475 passed with stages
in 16 minutes and 37 seconds
import std::byte_array::ByteArray
import std::io::(Read, Write)
import std::os::NEWLINE
import std::test
import std::test::assert
......@@ -64,7 +65,7 @@'std::io::Write.print') do (g) {
let writer =
let written = try! writer.print('inko')
assert.equal(written, 5)
assert.equal(writer.buffer, ['inko', "\n"])
assert.equal(written, NEWLINE.length + 4)
assert.equal(writer.buffer, ['inko', NEWLINE])
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment