Ensure no interpolation for normal strings.
This commit is contained in:
parent
20aaf1826a
commit
aacb7f0b24
@ -325,6 +325,16 @@ fn test_string_interpolated() -> Result<(), Box<EvalAltResult>> {
|
||||
"hello 42 worlds!"
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
engine.eval::<String>(
|
||||
r#"
|
||||
let x = 40;
|
||||
"hello ${x+2} worlds!"
|
||||
"#
|
||||
)?,
|
||||
"hello ${x+2} worlds!"
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
engine.eval::<String>(
|
||||
r"
|
||||
|
Loading…
Reference in New Issue
Block a user