Allow escaping quotes in strings.
This commit is contained in:
@@ -12,6 +12,7 @@ fn test_string() -> Result<(), EvalAltResult> {
|
||||
engine.eval::<String>(r#""Test string: \x58""#)?,
|
||||
"Test string: X"
|
||||
);
|
||||
assert_eq!(engine.eval::<String>(r#""\"hello\"""#)?, r#""hello""#);
|
||||
|
||||
assert_eq!(engine.eval::<String>(r#""foo" + "bar""#)?, "foobar");
|
||||
|
||||
|
Reference in New Issue
Block a user