diff --git a/src/rstd/atomic/au64.rs b/src/rstd/atomic/au64.rs index b66d506..f7955dc 100644 --- a/src/rstd/atomic/au64.rs +++ b/src/rstd/atomic/au64.rs @@ -73,4 +73,9 @@ mod tests { 0x0807060504030201, ); } + + #[test] + fn cannot_parse_empty_slice() { + assert_eq!(u64::parse_slice(&[]).unwrap_err(), IntParseError::Eof); + } }