| author | |
| committer | |
| log | d49cdf5b2d2e30ab9188c54e359f19768d890bf3 |
| tree | 6cb3af9da093f63bd524d21ca88c06807399d687 |
| parent | c2361bf54808da49393e892b81bdff45c68c4c51 |
2 files changed, 4 insertions(+), 0 deletions(-)
lib/std/compress/flate/deflate.zig+2| ... | ... | @@ -603,6 +603,8 @@ const TestTokenWriter = struct { |
| 603 | 603 | }; |
| 604 | 604 | |
| 605 | 605 | test "flate.Deflate struct sizes" { |
| 606 | if (@sizeOf(usize) != 8) return error.SkipZigTest; | |
| 607 | ||
| 606 | 608 | try expect(@sizeOf(Token) == 4); |
| 607 | 609 | |
| 608 | 610 | // list: (1 << 15) * 4 = 128k + pos: 8 |
lib/std/compress/flate/inflate.zig+2| ... | ... | @@ -342,6 +342,8 @@ pub fn Inflate(comptime container: Container, comptime ReaderType: type) type { |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | 344 | test "flate.Inflate struct sizes" { |
| 345 | if (@sizeOf(usize) != 8) return error.SkipZigTest; | |
| 346 | ||
| 345 | 347 | var fbs = std.io.fixedBufferStream(""); |
| 346 | 348 | const ReaderType = @TypeOf(fbs.reader()); |
| 347 | 349 | const inflate_size = @sizeOf(Inflate(.gzip, ReaderType)); |