mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
cp: fix wrong test names for update
This commit is contained in:
parent
c0e4e4f757
commit
983fee0cea
1 changed files with 3 additions and 3 deletions
|
@ -323,7 +323,7 @@ fn test_cp_arg_update_older_dest_older_than_src() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_cp_arg_update_short_fail() {
|
fn test_cp_arg_update_short_no_overwrite() {
|
||||||
// same as --update=older
|
// same as --update=older
|
||||||
let (at, mut ucmd) = at_and_ucmd!();
|
let (at, mut ucmd) = at_and_ucmd!();
|
||||||
|
|
||||||
|
@ -349,7 +349,7 @@ fn test_cp_arg_update_short_fail() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_cp_arg_update_short_succeed() {
|
fn test_cp_arg_update_short_overwrite() {
|
||||||
// same as --update=older
|
// same as --update=older
|
||||||
let (at, mut ucmd) = at_and_ucmd!();
|
let (at, mut ucmd) = at_and_ucmd!();
|
||||||
|
|
||||||
|
@ -371,7 +371,7 @@ fn test_cp_arg_update_short_succeed() {
|
||||||
.no_stderr()
|
.no_stderr()
|
||||||
.no_stdout();
|
.no_stdout();
|
||||||
|
|
||||||
assert_eq!(at.read(new), "new content\n")
|
assert_eq!(at.read(old), "new content\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue