From 93d970235e45084508de01e374f26fa7ec3c084f Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Tue, 23 Feb 2021 19:31:43 +0800 Subject: [PATCH] Fix no_object. --- tests/print.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" );