From 1836d97e410c28d4c6251ba21416ccded64a9f2a Mon Sep 17 00:00:00 2001 From: timofey Date: Fri, 4 Aug 2023 20:46:15 +0000 Subject: [PATCH] `tests::can_parse_zero` --- src/rstd/atomic/au64.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); + } +}