tests::can_parse_zero
All checks were successful
buildbot/runtests-gitea Build done.
buildbot/runtests Build done.

This commit is contained in:
AF 2023-08-04 20:46:15 +00:00
parent 8729651ece
commit 1836d97e41

View File

@ -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);
}
}