Fix no_object.
This commit is contained in:
parent
36420f0b99
commit
93d970235e
@ -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"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user