test(03-01): add 19 unit tests for crypto, compression, and format modules

- crypto: encrypt/decrypt roundtrip, empty data, size formula, HMAC compute/verify, SHA-256 known values
- compression: compress/decompress roundtrip, empty data, large data, should_compress heuristic
- format: header write/read roundtrip, TOC entry roundtrip (ASCII + Cyrillic + empty name), bad magic/version rejection, entry size calculation matching FORMAT.md worked example
- Update hex-literal to v1.1
This commit is contained in:
NikitolProject
2026-02-25 00:30:47 +03:00
parent ce9012c5c5
commit 3e96b1ed88
5 changed files with 302 additions and 3 deletions

View File

@@ -16,5 +16,5 @@ anyhow = "1.0"
[dev-dependencies]
tempfile = "3.16"
assert_cmd = "2.0"
hex-literal = "0.4"
hex-literal = "1.1"
predicates = "3.1"