Skip to content

Commit

Permalink
test size_of_sha1 reports wrong size on i386
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkjall committed Nov 27, 2023
1 parent f09ea13 commit 5c2d615
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gix-features/tests/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ fn size_of_sha1() {
assert_eq!(std::mem::size_of::<Sha1>(), 96)
}

#[cfg(feature = "fast-sha1")]
#[cfg(all(feature = "fast-sha1", target_arch = "x86"))]
#[test]
fn size_of_sha1() {
assert_eq!(std::mem::size_of::<Sha1>(), 96)
}

#[cfg(all(feature = "fast-sha1", not(target_arch = "x86")))]
#[test]
fn size_of_sha1() {
assert_eq!(std::mem::size_of::<Sha1>(), 104)
Expand Down

0 comments on commit 5c2d615

Please sign in to comment.