//! Invariant: hashing the same file twice produces the same hash.
use envseal::guard;
#[test]
fn hash_binary_deterministic() {
let dir = tempfile::tempdir().unwrap();
let path = dir.path().join("det");
std::fs::write(&path, b"deterministic content").unwrap();
let h1 = guard::hash_binary(&path).unwrap();
let h2 = guard::hash_binary(&path).unwrap();
assert_eq!(h1, h2);
}