From 117f75ef658a9aadd552257fdb0b339858658ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Kj=C3=A4ll?= Date: Tue, 16 Jan 2024 09:06:55 +0100 Subject: [PATCH] gate the stable_hash test to only run on little endinan machines (#49) * gate the stable_hash test to only run on little endinan machines * Update src/lib.rs --------- Co-authored-by: Michael Diamond --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 036be9f..7a5dfa9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -870,6 +870,8 @@ mod cache_tests { // Sanity-checking that cache_key's behavior is stable over time. This test may need to be // updated when changing Rust versions / editions. + // Disabled on hardware that generates other hashes, see #39 + #[cfg(target_endian = "little")] #[test] fn stable_hash() { assert_eq!(100.cache_key(), "7D208C81E8236995");