Skip to content

Commit e9002cc

Browse files
committed
head: update 32-bit tests
1 parent 3d67ebf commit e9002cc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/uu/head/src/parse.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,13 @@ mod tests {
204204
#[test]
205205
#[cfg(target_pointer_width = "32")]
206206
fn test_parse_obsolete_overflow_x32() {
207-
assert_eq!(obsolete("-42949672960"), Some(Err(ParseError)));
208-
assert_eq!(obsolete("-42949672k"), Some(Err(ParseError)));
207+
assert_eq!(
208+
obsolete("-42949672960"),
209+
obsolete_result(&["-c", "4294967295"])
210+
);
211+
assert_eq!(
212+
obsolete("-42949672k"),
213+
obsolete_result(&["-c", "4294967295"])
214+
);
209215
}
210216
}

0 commit comments

Comments
 (0)