diff --git a/tests/print.rs b/tests/print.rs index c9d7fd28..d2679073 100644 --- a/tests/print.rs +++ b/tests/print.rs @@ -13,15 +13,15 @@ fn test_to_string() -> Result<(), Box> { scope.push("z", 42_i16); assert_eq!( - engine.eval_with_scope::(&mut scope, "x.to_string()")?, + engine.eval_with_scope::(&mut scope, "to_string(x)")?, "42" ); assert_eq!( - engine.eval_with_scope::(&mut scope, "y.to_string()")?, + engine.eval_with_scope::(&mut scope, "to_string(x)")?, "42" ); assert_eq!( - engine.eval_with_scope::(&mut scope, "z.to_string()")?, + engine.eval_with_scope::(&mut scope, "to_string(x)")?, "42" );