Refactor path commands (#9687)

This commit is contained in:
Jakub Žádník
2023-07-15 00:04:22 +03:00
committed by GitHub
parent 8c52b7a23a
commit ba766de5d1
14 changed files with 254 additions and 338 deletions

View File

@ -2,21 +2,6 @@ use nu_test_support::{nu, pipeline};
use super::join_path_sep;
#[test]
fn returns_path_joined_with_column_path() {
let actual = nu!(
cwd: "tests", pipeline(
r#"
echo [ [name]; [eggs] ]
| path join spam.txt -c [ name ]
| get name.0
"#
));
let expected = join_path_sep(&["eggs", "spam.txt"]);
assert_eq!(actual.out, expected);
}
#[test]
fn returns_path_joined_from_list() {
let actual = nu!(