From 677c3f3bd0a9d5f255c8a1ccca4b31cae10149f1 Mon Sep 17 00:00:00 2001 From: timofey Date: Fri, 4 Aug 2023 21:16:00 +0000 Subject: [PATCH] `tests::cannot_parse_empty_slice` --- src/rstd/atomic/au64.rs | 5 +++++ 1 file changed, 5 insertions(+) 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); + } }