Fix bug in constant interpolated string.

This commit is contained in:
Stephen Chung
2022-07-29 10:49:03 +08:00
parent fc976172e7
commit 1073a7bd54
4 changed files with 22 additions and 5 deletions

View File

@@ -334,6 +334,8 @@ fn test_string_split() -> Result<(), Box<EvalAltResult>> {
fn test_string_interpolated() -> Result<(), Box<EvalAltResult>> {
let engine = Engine::new();
assert_eq!(engine.eval::<String>("`${}`")?, "");
assert_eq!(
engine.eval::<String>(
"