From 983fee0cead753e2a0482bd5dfd3fe5d5018830f Mon Sep 17 00:00:00 2001 From: John Shin Date: Tue, 2 May 2023 13:35:52 -0700 Subject: [PATCH] cp: fix wrong test names for update --- tests/by-util/test_cp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/by-util/test_cp.rs b/tests/by-util/test_cp.rs index 33bdcb3a8..7f293edcf 100644 --- a/tests/by-util/test_cp.rs +++ b/tests/by-util/test_cp.rs @@ -323,7 +323,7 @@ fn test_cp_arg_update_older_dest_older_than_src() { } #[test] -fn test_cp_arg_update_short_fail() { +fn test_cp_arg_update_short_no_overwrite() { // same as --update=older let (at, mut ucmd) = at_and_ucmd!(); @@ -349,7 +349,7 @@ fn test_cp_arg_update_short_fail() { } #[test] -fn test_cp_arg_update_short_succeed() { +fn test_cp_arg_update_short_overwrite() { // same as --update=older let (at, mut ucmd) = at_and_ucmd!(); @@ -371,7 +371,7 @@ fn test_cp_arg_update_short_succeed() { .no_stderr() .no_stdout(); - assert_eq!(at.read(new), "new content\n") + assert_eq!(at.read(old), "new content\n") } #[test]