Move and enable with-env test (#4489)

This commit is contained in:
JT 2022-02-16 04:59:44 -05:00 committed by GitHub
parent bd96ce4e9c
commit 644435bfe3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 12 deletions

View file

@ -55,18 +55,6 @@ fn with_env_and_shorthand_same_result() {
assert_eq!(actual_shorthand.out, actual_normal.out); 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 // FIXME: jt: needs more work
#[ignore] #[ignore]
#[test] #[test]

View file

@ -243,3 +243,11 @@ fn reduce_spans() -> TestResult {
"right here", "right here",
) )
} }
#[test]
fn with_env_shorthand_nested_quotes() -> TestResult {
run_test(
r#"FOO='-arg "hello world"' echo $env | get FOO"#,
"-arg \"hello world\"",
)
}