mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
Merge pull request #2241 from jfinkels/truncate-rustfmt-test
truncate: rustfmt test_truncate.rs file
This commit is contained in:
commit
76844dbd56
1 changed files with 12 additions and 3 deletions
|
@ -241,9 +241,18 @@ fn test_invalid_numbers() {
|
||||||
// TODO For compatibility with GNU, `truncate -s 0X` should cause
|
// TODO For compatibility with GNU, `truncate -s 0X` should cause
|
||||||
// the same error as `truncate -s 0X file`, but currently it returns
|
// the same error as `truncate -s 0X file`, but currently it returns
|
||||||
// a different error.
|
// a different error.
|
||||||
new_ucmd!().args(&["-s", "0X", "file"]).fails().stderr_contains("Invalid number: ‘0X’");
|
new_ucmd!()
|
||||||
new_ucmd!().args(&["-s", "0XB", "file"]).fails().stderr_contains("Invalid number: ‘0XB’");
|
.args(&["-s", "0X", "file"])
|
||||||
new_ucmd!().args(&["-s", "0B", "file"]).fails().stderr_contains("Invalid number: ‘0B’");
|
.fails()
|
||||||
|
.stderr_contains("Invalid number: ‘0X’");
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["-s", "0XB", "file"])
|
||||||
|
.fails()
|
||||||
|
.stderr_contains("Invalid number: ‘0XB’");
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["-s", "0B", "file"])
|
||||||
|
.fails()
|
||||||
|
.stderr_contains("Invalid number: ‘0B’");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue