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
..
2022-12-06 20:38:54 -07:00
2022-12-13 15:37:52 -05:00
2022-12-14 14:26:02 -07:00
2022-12-15 05:13:21 -05:00
2022-12-13 13:14:20 +02:00
2022-05-09 18:51:46 +02:00
2022-12-06 20:38:54 -07:00
2022-12-10 12:34:34 +01:00
2022-12-14 14:26:02 -07:00
2022-12-14 11:42:28 -05:00
2022-11-30 15:42:59 -07:00
2022-10-06 21:22:20 +03:00
2022-11-29 23:30:38 -07:00
2022-07-23 13:52:16 +03:00
2022-12-14 00:29:25 +00:00
2022-12-13 15:04:03 -05:00
2022-12-09 20:37:18 -07:00
2022-07-13 16:10:41 -07:00
2022-12-14 17:42:02 +01:00
2022-12-14 11:42:28 -05:00
2022-11-28 17:07:35 +01:00
2022-11-29 23:30:38 -07:00
2022-11-28 18:49:33 +02:00
2022-12-13 13:14:20 +02:00
2022-08-22 13:55:00 +03:00
2022-12-11 12:48:18 -07:00
2022-12-14 14:08:22 +02:00
2022-12-04 15:57:40 -07:00
2022-12-15 02:56:24 -05:00
2022-12-09 21:57:17 +01:00
2022-11-04 00:09:27 +03:30
2022-12-06 20:38:54 -07:00
2022-12-12 06:23:56 +02:00
2022-08-16 20:35:03 +03:00
2022-05-11 18:41:23 -06:00
2022-12-13 19:19:27 -05:00
2022-12-15 03:49:26 -05:00
2022-12-06 20:38:54 -07:00
2022-12-10 22:55:04 +01:00
2022-11-18 19:22:42 +00:00
2022-06-11 23:49:33 +03:00
2022-12-08 22:21:46 +02:00
2022-12-14 11:42:28 -05:00
2022-12-15 03:49:26 -05:00
2022-12-06 20:38:54 -07:00
2022-12-13 13:14:20 +02:00
2022-11-18 19:22:42 +00:00
2022-12-12 06:23:56 +02:00
2022-12-09 21:57:17 +01:00
2022-12-14 14:26:02 -07:00
2022-12-04 15:57:40 -07:00
2022-12-06 12:27:28 -07:00
2022-05-11 15:43:18 -04:00
2022-11-05 10:15:01 +01:00
2022-12-06 20:38:54 -07:00
2022-12-06 20:38:54 -07:00
2022-09-11 23:18:43 -04:00
2022-09-16 14:46:53 -04:00
2022-11-18 19:22:42 +00:00
2022-12-10 12:34:34 +01:00
2022-12-13 15:13:25 -05:00
2022-12-08 22:21:46 +02:00
2022-12-06 20:38:54 -07:00
2022-12-09 21:57:17 +01:00
2022-12-14 17:42:02 +01:00
2022-12-06 20:38:54 -07:00
2022-11-29 23:30:38 -07:00
2022-12-13 14:55:41 -05:00
2022-12-13 14:55:41 -05:00
2022-12-06 12:15:04 -07:00
2022-12-13 09:11:30 +01:00
2022-12-06 20:38:54 -07:00
2022-12-10 12:33:17 +01:00
2022-12-09 21:57:17 +01:00
2022-12-10 12:34:34 +01:00
2022-11-05 02:34:24 -04:00
2022-12-13 13:14:20 +02:00
2022-12-11 12:48:17 -07:00
2022-11-23 19:17:58 +01:00
2022-12-15 03:49:26 -05:00
2022-12-13 13:14:20 +02:00
2022-11-02 23:20:19 +01:00
2022-04-15 17:01:01 -05:00
2022-06-17 21:04:21 +03:00
2022-12-06 20:38:54 -07:00
2022-11-19 19:32:45 -07:00
2022-12-12 17:42:00 +01:00
2022-06-11 23:49:33 +03:00
2022-12-13 15:06:55 -05:00