Do not unnecessarily use raw strings.

This commit is contained in:
Stephen Chung
2021-04-20 12:01:35 +08:00
parent a186eb8d97
commit 0f66c67f82
29 changed files with 100 additions and 103 deletions

View File

@@ -319,7 +319,7 @@ fn test_string_interpolated() -> Result<(), Box<EvalAltResult>> {
assert_eq!(
engine.eval::<String>(
r"
"
let x = 40;
`hello ${x+2} worlds!`
"
@@ -339,7 +339,7 @@ fn test_string_interpolated() -> Result<(), Box<EvalAltResult>> {
assert_eq!(
engine.eval::<String>(
r"
"
const x = 42;
`hello ${x} worlds!`
"
@@ -351,7 +351,7 @@ fn test_string_interpolated() -> Result<(), Box<EvalAltResult>> {
assert_eq!(
engine.eval::<String>(
r"
"
const x = 42;
`${x} worlds!`
"
@@ -361,7 +361,7 @@ fn test_string_interpolated() -> Result<(), Box<EvalAltResult>> {
assert_eq!(
engine.eval::<String>(
r"
"
const x = 42;
`hello ${x}`
"
@@ -371,7 +371,7 @@ fn test_string_interpolated() -> Result<(), Box<EvalAltResult>> {
assert_eq!(
engine.eval::<String>(
r"
"
const x = 20;
`hello ${let y = x + 1; `${y * 2}`} worlds!`
"