tests::can_parse_zero
This commit is contained in:
parent
8729651ece
commit
1836d97e41
@ -56,3 +56,13 @@ impl CInliningAtomic for u64 {
|
|||||||
impl ConstSizeAtomic for u64 {
|
impl ConstSizeAtomic for u64 {
|
||||||
const SIZE: usize = 8;
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user