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

uucore: implement SI suffixes R and Q

This commit is contained in:
zhitkoff 2023-10-04 21:26:29 -04:00 committed by Yury Zhytkou
parent f18055835c
commit cb7479e823
15 changed files with 244 additions and 147 deletions

View file

@ -297,11 +297,15 @@ fn test_head_invalid_num() {
new_ucmd!()
.args(&["-c", "1024R", "emptyfile.txt"])
.fails()
.stderr_is("head: invalid number of bytes: '1024R'\n");
.stderr_is(
"head: invalid number of bytes: '1024R': Value too large for defined data type\n",
);
new_ucmd!()
.args(&["-n", "1024R", "emptyfile.txt"])
.fails()
.stderr_is("head: invalid number of lines: '1024R'\n");
.stderr_is(
"head: invalid number of lines: '1024R': Value too large for defined data type\n",
);
#[cfg(not(target_pointer_width = "128"))]
new_ucmd!()
.args(&["-c", "1Y", "emptyfile.txt"])