authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-02 23:54:23+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2024-10-02 23:54:23+02:00
log26d35cc1128c12fe11331915511524550e88bc15
tree468f22a60e33f4234b71177917c7458b3ac9330b
parent038e002b1cc38e1e031f5f09388218c39e1b34ab
parent2db3c770608a4318269fc5a3b61bd50e6c6f6a3f
signaturebadge-check Signed by PGP key B5690EEEBB952194

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

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

1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/io/Reader/test.zig+2-1
......@@ -1,3 +1,4 @@
1const builtin = @import("builtin");
12const std = @import("../../std.zig");
23const testing = std.testing;
34
......@@ -11,7 +12,7 @@ test "Reader" {
1112 b = 99,
1213 c = 2,
1314 d = 3,
14 }, undefined)) == .c);
15 }, builtin.cpu.arch.endian())) == .c);
1516 try testing.expectError(error.EndOfStream, reader.readByte());
1617}
1718