Fix string interpolation escaping (#4854)

This commit is contained in:
JT
2022-03-16 05:09:30 +13:00
committed by GitHub
parent 762da0989c
commit 0bd8664f33
2 changed files with 16 additions and 1 deletions

View File

@ -218,6 +218,11 @@ fn string_interpolation_paren_test3() -> TestResult {
run_test(r#"$"('(')("test")test(')')""#, "(testtest)")
}
#[test]
fn string_interpolation_escaping() -> TestResult {
run_test(r#"$"hello\nworld" | lines | length"#, "2")
}
#[test]
fn capture_multiple_commands() -> TestResult {
run_test(