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:
parent
f18055835c
commit
cb7479e823
15 changed files with 244 additions and 147 deletions
|
@ -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"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue