mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
head: update 32-bit tests
This commit is contained in:
committed by
Sylvestre Ledru
parent
d466b6702b
commit
1ffaf2d629
@@ -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"])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user