From 1ffaf2d6295f2fde1bd715c923dd96ceaf933dcc Mon Sep 17 00:00:00 2001 From: Jeremy Smart Date: Thu, 10 Apr 2025 22:39:13 -0400 Subject: [PATCH] head: update 32-bit tests --- src/uu/head/src/parse.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/uu/head/src/parse.rs b/src/uu/head/src/parse.rs index a59a62c45..0dbac6fe2 100644 --- a/src/uu/head/src/parse.rs +++ b/src/uu/head/src/parse.rs @@ -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"]) + ); } }