blob: c8e48da57e3e6e686db2574d05d542b4f34bffe1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use gix_features::hash::Sha1;
#[cfg(not(feature = "fast-sha1"))]
#[test]
fn size_of_sha1() {
assert_eq!(std::mem::size_of::<Sha1>(), 96)
}
#[cfg(feature = "fast-sha1")]
#[test]
fn size_of_sha1() {
assert_eq!(std::mem::size_of::<Sha1>(), 104)
}
|