diff --git a/tests/string.rs b/tests/string.rs index 9c72b27d..abcea364 100644 --- a/tests/string.rs +++ b/tests/string.rs @@ -325,6 +325,16 @@ fn test_string_interpolated() -> Result<(), Box> { "hello 42 worlds!" ); + assert_eq!( + engine.eval::( + r#" + let x = 40; + "hello ${x+2} worlds!" + "# + )?, + "hello ${x+2} worlds!" + ); + assert_eq!( engine.eval::( r"