diff --git a/src/rstd/atomic/au64.rs b/src/rstd/atomic/au64.rs index 1cf435b..b66d506 100644 --- a/src/rstd/atomic/au64.rs +++ b/src/rstd/atomic/au64.rs @@ -65,4 +65,12 @@ mod tests { fn can_parse_zero() { assert_eq!(u64::parse_slice(&[0, 0, 0, 0, 0, 0, 0, 0]).unwrap(), 0); } + + #[test] + fn can_parse_le() { + assert_eq!( + u64::parse_slice(&[1, 2, 3, 4, 5, 6, 7, 8]).unwrap(), + 0x0807060504030201, + ); + } }