Skip to content

Commit 67a2db6

Browse files
committed
revert some merge issues
1 parent ec5e847 commit 67a2db6

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ unicode-segmentation = "1.11.0"
348348
unicode-width = "0.2.0"
349349
utf-8 = "0.7.6"
350350
utmp-classic = "0.1.6"
351-
uutils_term_grid = "0.6"
351+
uutils_term_grid = "0.7"
352352
walkdir = "2.5"
353353
winapi-util = "0.1.8"
354354
windows-sys = { version = "0.59.0", default-features = false }

tests/by-util/test_cp.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6167,3 +6167,20 @@ fn test_cp_update_older_interactive_prompt_no() {
61676167
.fails()
61686168
.stdout_is("cp: overwrite 'old'? ");
61696169
}
6170+
6171+
#[test]
6172+
fn test_cp_update_none_interactive_prompt_no() {
6173+
let (at, mut ucmd) = at_and_ucmd!();
6174+
let old_file = "old";
6175+
let new_file = "new";
6176+
6177+
at.write(old_file, "old content");
6178+
at.write(new_file, "new content");
6179+
6180+
ucmd.args(&["-i", "--update=none", new_file, old_file])
6181+
.succeeds()
6182+
.no_output();
6183+
6184+
assert_eq!(at.read(old_file), "old content");
6185+
assert_eq!(at.read(new_file), "new content");
6186+
}

0 commit comments

Comments
 (0)