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!(