Fix string interpolation paren cases (#4410)

This commit is contained in:
JT
2022-02-10 11:09:08 -05:00
committed by GitHub
parent 5cf91cb30d
commit 2e3b2a48ee
2 changed files with 40 additions and 10 deletions

View File

@@ -197,3 +197,18 @@ fn let_env_expressions() -> TestResult {
"done",
)
}
#[test]
fn string_interpolation_paren_test() -> TestResult {
run_test(r#"$"('(')(')')""#, "()")
}
#[test]
fn string_interpolation_paren_test2() -> TestResult {
run_test(r#"$"('(')test(')')""#, "(test)")
}
#[test]
fn string_interpolation_paren_test3() -> TestResult {
run_test(r#"$"('(')("test")test(')')""#, "(testtest)")
}