1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

head: update 32-bit tests

This commit is contained in:
Jeremy Smart 2025-04-10 22:39:13 -04:00 committed by Sylvestre Ledru
parent d466b6702b
commit 1ffaf2d629

View file

@ -204,7 +204,13 @@ mod tests {
#[test]
#[cfg(target_pointer_width = "32")]
fn test_parse_obsolete_overflow_x32() {
assert_eq!(obsolete("-42949672960"), Some(Err(ParseError)));
assert_eq!(obsolete("-42949672k"), Some(Err(ParseError)));
assert_eq!(
obsolete("-42949672960"),
obsolete_result(&["-n", "4294967295"])
);
assert_eq!(
obsolete("-42949672k"),
obsolete_result(&["-c", "4294967295"])
);
}
}