mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Ran cargo fmt
This commit is contained in:
parent
b91fadd8f4
commit
93b03bf9a6
2 changed files with 6 additions and 5 deletions
|
@ -62,14 +62,16 @@ fn test_invalid_file() {
|
||||||
let folder_name = "asdf";
|
let folder_name = "asdf";
|
||||||
|
|
||||||
// First check when file doesn't exist
|
// First check when file doesn't exist
|
||||||
ts.ucmd().arg(folder_name)
|
ts.ucmd()
|
||||||
|
.arg(folder_name)
|
||||||
.fails()
|
.fails()
|
||||||
.no_stdout()
|
.no_stdout()
|
||||||
.stderr_contains("cksum: error: 'asdf' No such file or directory");
|
.stderr_contains("cksum: error: 'asdf' No such file or directory");
|
||||||
|
|
||||||
// Then check when the file is of an invalid type
|
// Then check when the file is of an invalid type
|
||||||
at.mkdir(folder_name);
|
at.mkdir(folder_name);
|
||||||
ts.ucmd().arg(folder_name)
|
ts.ucmd()
|
||||||
|
.arg(folder_name)
|
||||||
.fails()
|
.fails()
|
||||||
.no_stdout()
|
.no_stdout()
|
||||||
.stderr_contains("cksum: error: 'asdf' Is a directory");
|
.stderr_contains("cksum: error: 'asdf' Is a directory");
|
||||||
|
|
|
@ -388,8 +388,7 @@ fn test_mktemp_tmpdir_one_arg() {
|
||||||
.arg("--tmpdir")
|
.arg("--tmpdir")
|
||||||
.arg("apt-key-gpghome.XXXXXXXXXX")
|
.arg("apt-key-gpghome.XXXXXXXXXX")
|
||||||
.succeeds();
|
.succeeds();
|
||||||
result.no_stderr()
|
result.no_stderr().stdout_contains("apt-key-gpghome.");
|
||||||
.stdout_contains("apt-key-gpghome.");
|
|
||||||
assert!(PathBuf::from(result.stdout_str().trim()).is_file());
|
assert!(PathBuf::from(result.stdout_str().trim()).is_file());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue