Skip to content

Commit

Permalink
Fixed test formatting
Browse files Browse the repository at this point in the history
There were some minor formatting issues with how the test_rm.rs file
looked (I wrote the code on my phone, jaja) so I tidied it up.
  • Loading branch information
billyb2 committed Mar 9, 2021
1 parent 5c32a37 commit 88edf1f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tests/by-util/test_rm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,18 @@ fn test_rm_errors() {

}

#[test] fn test_rm_dir_not_empty() {
#[test]
fn test_rm_dir_not_empty() {
let (at, mut ucmd) = at_and_ucmd!();
let dir = "test_rm_errors_directory"; let file = "test_rm_errors_directory/test_rm_errors_file";
at.mkdir(dir);
at.touch(file);
let dir = "test_rm_errors_directory";
let file = "test_rm_errors_directory/test_rm_errors_file";

at.mkdir(dir);
at.touch(file);

// rm: cannot remove 'test_rm_errors_directory_2': Directory not empty
ucmd.arg("-d").arg(dir).fails().stderr_is( "rm: cannot remove 'test_rm_errors_directory': Directory not empty\n"
// rm: cannot remove 'test_rm_errors_directory': Directory not empty
ucmd.arg("-d").arg(dir).fails().stderr_is(
"rm: cannot remove 'test_rm_errors_directory': Directory not empty\n"
);

}
Expand Down

0 comments on commit 88edf1f

Please sign in to comment.