diff --git a/tests/functions.rs b/tests/functions.rs index 24611d0c..6a37c87d 100644 --- a/tests/functions.rs +++ b/tests/functions.rs @@ -44,6 +44,7 @@ fn test_functions_namespaces() -> Result<(), Box> { let mut engine = Engine::new(); #[cfg(not(feature = "no_function"))] + #[cfg(not(feature = "no_module"))] { assert_eq!( engine.eval::( @@ -81,6 +82,7 @@ fn test_functions_namespaces() -> Result<(), Box> { assert_eq!(engine.eval::("test()")?, 42); #[cfg(not(feature = "no_function"))] + #[cfg(not(feature = "no_module"))] { assert_eq!(engine.eval::("fn test() { 123 } test()")?, 123);