std.io.Reader: Fix test erroneously using undefined.

This commit is contained in:
Alex Rønne Petersen 2024-09-26 17:04:36 +02:00
parent 4ceefca14b
commit 2db3c77060
No known key found for this signature in database

View File

@ -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());
}