e7738de6d2
CI / Deep Native Runtime Cases (1/6) (push) Has been skipped
CI / Native Preflight (push) Failing after 1s
CI / Native Runtime Cases (1/2) (push) Failing after 0s
CI / Native Runtime Cases (2/2) (push) Failing after 1s
CI / Native Metadata Reports (push) Failing after 0s
CI / Native Direct Backend Artifacts (push) Failing after 0s
CI / Native Sanitizer Smoke (push) Failing after 1s
CI / Command Contract Snapshots (push) Failing after 1s
CI / Deep Conformance Suite (push) Has been skipped
CI / Graph Build Perf (push) Failing after 1s
CI / Deep Native Preflight (push) Has been skipped
CI / Deep Native Runtime Cases (2/6) (push) Has been skipped
CI / Deep Native Runtime Cases (3/6) (push) Has been skipped
CI / Conformance Suite (push) Failing after 1s
CI / Workspace Checks (push) Failing after 0s
CI / Deep Native Runtime Cases (5/6) (push) Has been skipped
CI / Deep Native Runtime Cases (6/6) (push) Has been skipped
CI / Deep Native Runtime Cases (4/6) (push) Has been skipped
CI / Deep Graph Build Perf (push) Has been skipped
14 lines
814 B
Plaintext
14 lines
814 B
Plaintext
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<usize> = std.fs.writeBytes(".zero/conformance/std-fs-bytes.bin", bytes)
|
|
let read: Maybe<usize> = std.fs.readBytes(".zero/conformance/std-fs-bytes.bin", read_buf)
|
|
let truncated: Maybe<usize> = std.fs.readBytes(".zero/conformance/std-fs-bytes.bin", small_buf)
|
|
let missing: Maybe<usize> = 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")
|
|
}
|
|
}
|