From eedebf11d2336a21a0e10022c25af96c0f740980 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 19 Aug 2020 13:39:20 +0800 Subject: [PATCH] Fix plugins test. --- tests/plugins.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/plugins.rs b/tests/plugins.rs index 5331287b..51357260 100644 --- a/tests/plugins.rs +++ b/tests/plugins.rs @@ -57,7 +57,9 @@ fn test_plugins_package() -> Result<(), Box> { reg_functions!(engine += greet::single(INT, bool, char)); + #[cfg(not(feature = "no_object"))] assert_eq!(engine.eval::("let a = [1, 2, 3]; a.foo")?, 1); + assert_eq!(engine.eval::("let a = [1, 2, 3]; test(a, 2)")?, 6); assert_eq!(engine.eval::("2 + 2")?, 5); assert_eq!(