mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 02:05:02 +02:00
Rust 1.85, edition=2024 (#15741)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
use nu_test_support::fs::{files_exist_at, Stub::EmptyFile, Stub::FileWithContent};
|
||||
use nu_test_support::fs::{Stub::EmptyFile, Stub::FileWithContent, files_exist_at};
|
||||
use nu_test_support::nu;
|
||||
use nu_test_support::playground::Playground;
|
||||
use rstest::rstest;
|
||||
@ -249,9 +249,11 @@ fn errors_if_multiple_sources_but_destination_not_a_directory() {
|
||||
"mv file?.txt not_a_dir"
|
||||
);
|
||||
|
||||
assert!(actual
|
||||
.err
|
||||
.contains("Can only move multiple sources if destination is a directory"));
|
||||
assert!(
|
||||
actual
|
||||
.err
|
||||
.contains("Can only move multiple sources if destination is a directory")
|
||||
);
|
||||
})
|
||||
}
|
||||
|
||||
@ -546,13 +548,15 @@ fn mv_with_no_target() {
|
||||
cwd: dirs.test(),
|
||||
"mv a",
|
||||
);
|
||||
assert!(actual.err.contains(
|
||||
format!(
|
||||
"Missing destination path operand after {}",
|
||||
dirs.test().join("a").display()
|
||||
assert!(
|
||||
actual.err.contains(
|
||||
format!(
|
||||
"Missing destination path operand after {}",
|
||||
dirs.test().join("a").display()
|
||||
)
|
||||
.as_str()
|
||||
)
|
||||
.as_str()
|
||||
));
|
||||
);
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user