mirror of
https://github.com/uutils/coreutils
synced 2024-12-15 07:42:48 +00:00
Merge pull request #5645 from cakebaker/mv_rename_two_tests
mv: rename two tests
This commit is contained in:
commit
60fbf1db84
1 changed files with 11 additions and 11 deletions
|
@ -10,10 +10,20 @@ use std::thread::sleep;
|
|||
use std::time::Duration;
|
||||
|
||||
#[test]
|
||||
fn test_invalid_arg() {
|
||||
fn test_mv_invalid_arg() {
|
||||
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_mv_missing_dest() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
let dir = "dir";
|
||||
|
||||
at.mkdir(dir);
|
||||
|
||||
ucmd.arg(dir).fails();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_mv_rename_dir() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
|
@ -27,16 +37,6 @@ fn test_mv_rename_dir() {
|
|||
assert!(at.dir_exists(dir2));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_mv_fail() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
let dir1 = "test_mv_rename_dir";
|
||||
|
||||
at.mkdir(dir1);
|
||||
|
||||
ucmd.arg(dir1).fails();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_mv_rename_file() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
|
|
Loading…
Reference in a new issue