mirror of
https://github.com/nushell/nushell.git
synced 2025-08-19 03:46:00 +02:00
Fix string interpolation paren cases (#4410)
This commit is contained in:
@@ -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)")
|
||||
}
|
||||
|
Reference in New Issue
Block a user