| ... | @@ -1,3 +1,4 @@ | ... | @@ -1,3 +1,4 @@ |
| | 1 | const builtin = @import("builtin"); |
| 1 | const std = @import("../../std.zig"); | 2 | const std = @import("../../std.zig"); |
| 2 | const testing = std.testing; | 3 | const testing = std.testing; |
| 3 | | 4 | |
| ... | @@ -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 | } |
| 17 | | 18 | |