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 @@...@@ -1,3 +1,4 @@
1const builtin = @import("builtin");
1const std = @import("../../std.zig");2const std = @import("../../std.zig");
2const testing = std.testing;3const testing = std.testing;
34
...@@ -11,7 +12,7 @@ test "Reader" {...@@ -11,7 +12,7 @@ test "Reader" {
11 b = 99,12 b = 99,
12 c = 2,13 c = 2,
13 d = 3,14 d = 3,
14 }, undefined)) == .c);15 }, builtin.cpu.arch.endian())) == .c);
15 try testing.expectError(error.EndOfStream, reader.readByte());16 try testing.expectError(error.EndOfStream, reader.readByte());
16}17}
1718