Do not unnecessarily use raw strings.
This commit is contained in:
@@ -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!`
|
||||
"
|
||||
|
Reference in New Issue
Block a user