//! Invariant: hex encoding of empty input is empty string.
use envseal::guard;
#[test]
fn hex_encode_empty() {
// hash_binary on an empty file should still produce a valid 64-char hash
let dir = tempfile::tempdir().unwrap();
let path = dir.path().join("empty");
std::fs::write(&path, b"").unwrap();
let hash = guard::hash_binary(&path).unwrap();
assert_eq!(
hash.len(),
64,
"Fix: SHA-256 of empty input is 64 hex chars"
);
}