mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
Move and enable with-env test (#4489)
This commit is contained in:
parent
bd96ce4e9c
commit
644435bfe3
2 changed files with 8 additions and 12 deletions
|
@ -55,18 +55,6 @@ fn with_env_and_shorthand_same_result() {
|
|||
assert_eq!(actual_shorthand.out, actual_normal.out);
|
||||
}
|
||||
|
||||
// FIXME: jt: needs more work
|
||||
#[ignore]
|
||||
#[test]
|
||||
fn with_env_shorthand_nested_quotes() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats",
|
||||
"FOO='-arg \"hello world\"' echo $env | get FOO"
|
||||
);
|
||||
|
||||
assert_eq!(actual.out, "-arg \"hello world\"");
|
||||
}
|
||||
|
||||
// FIXME: jt: needs more work
|
||||
#[ignore]
|
||||
#[test]
|
||||
|
|
|
@ -243,3 +243,11 @@ fn reduce_spans() -> TestResult {
|
|||
"right here",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn with_env_shorthand_nested_quotes() -> TestResult {
|
||||
run_test(
|
||||
r#"FOO='-arg "hello world"' echo $env | get FOO"#,
|
||||
"-arg \"hello world\"",
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue