tests::can_parse_le

This commit is contained in:
AF 2023-08-04 20:52:49 +00:00
parent 1836d97e41
commit 58790a58d0

View File

@ -65,4 +65,12 @@ mod tests {
fn can_parse_zero() {
assert_eq!(u64::parse_slice(&[0, 0, 0, 0, 0, 0, 0, 0]).unwrap(), 0);
}
#[test]
fn can_parse_le() {
assert_eq!(
u64::parse_slice(&[1, 2, 3, 4, 5, 6, 7, 8]).unwrap(),
0x0807060504030201,
);
}
}