mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 18:03:51 +01:00
Move and enable with-env test (#4489)
This commit is contained in:
parent
bd96ce4e9c
commit
644435bfe3
@ -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 New Issue
Block a user