mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 08:33:06 +00:00
Merge pull request #21524 from alexrp/fix-reader-test
`std.io.Reader`: Fix test erroneously using `undefined`.
This commit is contained in:
commit
26d35cc112
@ -1,3 +1,4 @@
|
||||
const builtin = @import("builtin");
|
||||
const std = @import("../../std.zig");
|
||||
const testing = std.testing;
|
||||
|
||||
@ -11,7 +12,7 @@ test "Reader" {
|
||||
b = 99,
|
||||
c = 2,
|
||||
d = 3,
|
||||
}, undefined)) == .c);
|
||||
}, builtin.cpu.arch.endian())) == .c);
|
||||
try testing.expectError(error.EndOfStream, reader.readByte());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user