Fix no_object.

This commit is contained in:
Stephen Chung 2021-02-23 19:31:43 +08:00
parent 36420f0b99
commit 93d970235e

View File

@ -13,15 +13,15 @@ fn test_to_string() -> Result<(), Box<EvalAltResult>> {
scope.push("z", 42_i16); scope.push("z", 42_i16);
assert_eq!( assert_eq!(
engine.eval_with_scope::<String>(&mut scope, "x.to_string()")?, engine.eval_with_scope::<String>(&mut scope, "to_string(x)")?,
"42" "42"
); );
assert_eq!( assert_eq!(
engine.eval_with_scope::<String>(&mut scope, "y.to_string()")?, engine.eval_with_scope::<String>(&mut scope, "to_string(x)")?,
"42" "42"
); );
assert_eq!( assert_eq!(
engine.eval_with_scope::<String>(&mut scope, "z.to_string()")?, engine.eval_with_scope::<String>(&mut scope, "to_string(x)")?,
"42" "42"
); );