Merge pull request #21524 from alexrp/fix-reader-test

`std.io.Reader`: Fix test erroneously using `undefined`.
This commit is contained in:
Alex Rønne Petersen 2024-10-02 23:54:23 +02:00 committed by GitHub
commit 26d35cc112
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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