Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Adapt lib.rs doc test for endianness-dependent hash result #9

Merged
merged 1 commit into from
Feb 26, 2021
Merged

Conversation

decathorpe
Copy link
Contributor

The exact in-memory byte representation of the u64 field of the example Data struct are dependent on architecture endianness.

This PR converts the doc test that's "broken" on big-endian architectures (e.g. s390x / System Z) to specific assertions gated by the target_endian cfg attribute.

Fixes #8

@jonas-schievink
Copy link
Owner

Thanks!

@jonas-schievink jonas-schievink merged commit 47363fc into jonas-schievink:master Feb 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test src/lib.rs - Adler32 (line 57) ... FAILED (on s390x, big endian)
2 participants