zig/lib/std/compress/deflate
Ryan Liptak 077b003c50 std.compress: Improve tests, remove reliance on openDirAbsolute
- Previously, some of the compress tests used `@src()` in combination with `dirname` and `openDirAbsolute` to read test files at runtime, which both excludes platforms that `openDirAbsolute` is not implemented for (WASI) and platforms that `SourceLocation.file` is not absolute (this was true for me locally on Windows). Instead of converting the tests to use `fs.cwd().openDir`, they have been converted to use `@embedFile` to avoid any potential problems with the runtime cwd.
- In order to use `@embedFile`, some of the `[]u8` parameters needed to be changed to `[]const u8`; none of them needed to be non-const anyway
- The tests now use `expectEqual` and `expectEqualSlices` where appropriate for better diagnostics
2022-12-15 05:13:21 -05:00
..
testdata compress: add a deflate compressor 2022-01-23 19:30:06 +01:00
bits_utils.zig std.compress: Improve tests, remove reliance on openDirAbsolute 2022-12-15 05:13:21 -05:00
compressor.zig std.compress: Improve tests, remove reliance on openDirAbsolute 2022-12-15 05:13:21 -05:00
compressor_test.zig std.compress: Improve tests, remove reliance on openDirAbsolute 2022-12-15 05:13:21 -05:00
decompressor.zig std.compress: Improve tests, remove reliance on openDirAbsolute 2022-12-15 05:13:21 -05:00
deflate_const.zig compress: add a deflate compressor 2022-01-23 19:30:06 +01:00
deflate_fast.zig std.compress: Improve tests, remove reliance on openDirAbsolute 2022-12-15 05:13:21 -05:00
deflate_fast_test.zig std.compress: Improve tests, remove reliance on openDirAbsolute 2022-12-15 05:13:21 -05:00
dict_decoder.zig std.compress: Improve tests, remove reliance on openDirAbsolute 2022-12-15 05:13:21 -05:00
huffman_bit_writer.zig std.compress: Improve tests, remove reliance on openDirAbsolute 2022-12-15 05:13:21 -05:00
huffman_code.zig std.compress: Improve tests, remove reliance on openDirAbsolute 2022-12-15 05:13:21 -05:00
mem_utils.zig compress: add a deflate compressor 2022-01-23 19:30:06 +01:00
token.zig std.compress: Improve tests, remove reliance on openDirAbsolute 2022-12-15 05:13:21 -05:00