mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
parent
019f18058b
commit
1403748fd8
@ -5,8 +5,14 @@ const Rand = std.rand.Rand;
|
||||
const assert = std.debug.assert;
|
||||
const mem = std.mem;
|
||||
const os = std.os;
|
||||
const builtin = @import("builtin");
|
||||
|
||||
test "write a file, read it, then delete it" {
|
||||
if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
|
||||
// TODO get this test passing
|
||||
// https://github.com/zig-lang/zig/issues/537
|
||||
return;
|
||||
}
|
||||
var data: [1024]u8 = undefined;
|
||||
var rng = Rand.init(1234);
|
||||
rng.fillBytes(data[0..]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user