| ... | ... | @@ -1246,7 +1246,7 @@ test "zlib should not overshoot" { |
| 1246 | 1246 | fn testFailure(container: Container, in: []const u8, expected_err: anyerror) !void { |
| 1247 | 1247 | var reader: Reader = .fixed(in); |
| 1248 | 1248 | var aw: Writer.Allocating = .init(testing.allocator); |
| 1249 | | try aw.ensureUnusedCapacity(flate.history_len); |
| 1249 | try aw.ensureUnusedCapacity(flate.max_window_len); |
| 1250 | 1250 | defer aw.deinit(); |
| 1251 | 1251 | |
| 1252 | 1252 | var decompress: Decompress = .init(&reader, container, &.{}); |
| ... | ... | @@ -1257,7 +1257,7 @@ fn testFailure(container: Container, in: []const u8, expected_err: anyerror) !vo |
| 1257 | 1257 | fn testDecompress(container: Container, compressed: []const u8, expected_plain: []const u8) !void { |
| 1258 | 1258 | var in: std.Io.Reader = .fixed(compressed); |
| 1259 | 1259 | var aw: std.Io.Writer.Allocating = .init(testing.allocator); |
| 1260 | | try aw.ensureUnusedCapacity(flate.history_len); |
| 1260 | try aw.ensureUnusedCapacity(flate.max_window_len); |
| 1261 | 1261 | defer aw.deinit(); |
| 1262 | 1262 | |
| 1263 | 1263 | var decompress: Decompress = .init(&in, container, &.{}); |