summaryrefslogtreecommitdiffstats
path: root/vendor/gix-features/tests/hash.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix-features/tests/hash.rs')
-rw-r--r--vendor/gix-features/tests/hash.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/gix-features/tests/hash.rs b/vendor/gix-features/tests/hash.rs
new file mode 100644
index 000000000..c8e48da57
--- /dev/null
+++ b/vendor/gix-features/tests/hash.rs
@@ -0,0 +1,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)
+}