diff --git a/src/rstd/atomic/au64.rs b/src/rstd/atomic/au64.rs index e98fdff..1cf435b 100644 --- a/src/rstd/atomic/au64.rs +++ b/src/rstd/atomic/au64.rs @@ -56,3 +56,13 @@ impl CInliningAtomic for u64 { impl ConstSizeAtomic for u64 { const SIZE: usize = 8; } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn can_parse_zero() { + assert_eq!(u64::parse_slice(&[0, 0, 0, 0, 0, 0, 0, 0]).unwrap(), 0); + } +}