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:
parent
d466b6702b
commit
1ffaf2d629
1 changed files with 8 additions and 2 deletions
|
@ -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"])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue