mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 06:14:33 +00:00
- 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 |
||
|---|---|---|
| .. | ||
| testdata | ||
| bits_utils.zig | ||
| compressor.zig | ||
| compressor_test.zig | ||
| decompressor.zig | ||
| deflate_const.zig | ||
| deflate_fast.zig | ||
| deflate_fast_test.zig | ||
| dict_decoder.zig | ||
| huffman_bit_writer.zig | ||
| huffman_code.zig | ||
| mem_utils.zig | ||
| token.zig | ||