Add to_string
to prepare for string interpolation.
This commit is contained in:
@@ -7,7 +7,7 @@ fn test_increment() -> Result<(), EvalAltResult> {
|
||||
assert_eq!(engine.eval::<INT>("let x = 1; x += 2; x")?, 3);
|
||||
assert_eq!(
|
||||
engine.eval::<String>("let s = \"test\"; s += \"ing\"; s")?,
|
||||
"testing".to_string()
|
||||
"testing"
|
||||
);
|
||||
|
||||
Ok(())
|
||||
|
Reference in New Issue
Block a user