mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 07:05:47 +02:00
Refactor path commands (#9687)
This commit is contained in:
@ -99,21 +99,6 @@ fn parses_ignoring_extension_gets_stem() {
|
||||
assert_eq!(actual.out, "spam.tar.gz");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parses_column_path_extension() {
|
||||
let actual = nu!(
|
||||
cwd: "tests", pipeline(
|
||||
r#"
|
||||
echo [[home, barn]; ['home/viking/spam.txt', 'barn/cow/moo.png']]
|
||||
| path parse -c [ home barn ]
|
||||
| get barn
|
||||
| get extension.0
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "png");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parses_into_correct_number_of_columns() {
|
||||
let actual = nu!(
|
||||
|
Reference in New Issue
Block a user