lawsynth/services/artifact/tests/checksum_test.rs
2026-08-16 23:40:41 +03:00

9 lines
241 B
Rust

use lawsynth_artifact_service::{is_sha256_hex, sha256};
#[test]
fn sha256_is_a_stable_content_address() {
let digest = sha256(b"artifact bytes");
assert!(is_sha256_hex(&digest));
assert_ne!(digest, sha256(b"artifact bytez"));
}