Commit 2db3c77060

Alex Rønne Petersen <alex@alexrp.com>
2024-09-26 17:04:36
std.io.Reader: Fix test erroneously using undefined.
1 parent 4ceefca
Changed files (1)
lib
std
io
Reader
lib/std/io/Reader/test.zig
@@ -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());
 }