Skip to content

Commit

Permalink
gate the stable_hash test to only run on little endinan machines (#49)
Browse files Browse the repository at this point in the history
* gate the stable_hash test to only run on little endinan machines

* Update src/lib.rs

---------

Co-authored-by: Michael Diamond <dimo414@gmail.com>
  • Loading branch information
alexanderkjall and dimo414 committed Jan 16, 2024
1 parent 7c3921d commit 117f75e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 117f75e

Please sign in to comment.