pub fn main(world: World) -> Void raises { let bytes: [3]u8 = [65, 0, 66] var read_buf: [3]u8 = [0, 0, 0] var small_buf: [2]u8 = [0, 0] let written: Maybe = std.fs.writeBytes(".zero/conformance/std-fs-bytes.bin", bytes) let read: Maybe = std.fs.readBytes(".zero/conformance/std-fs-bytes.bin", read_buf) let truncated: Maybe = std.fs.readBytes(".zero/conformance/std-fs-bytes.bin", small_buf) let missing: Maybe = std.fs.readBytes(".zero/conformance/missing.bin", read_buf) if written.has && written.value == 3 && read.has && read.value == 3 && read_buf[1] == 0_u8 && truncated.has && truncated.value == 3 && small_buf[0] == 65_u8 && !missing.has { check world.err.write("fs bytes err ok\n") check world.out.write("fs bytes ok\n") } }