From ea814779bf270258ee2dbe231bab0b215ea3a859 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 18 Oct 2020 22:24:01 +0800 Subject: [PATCH] Fix test. --- tests/stack.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/stack.rs b/tests/stack.rs index 03edee0e..e9ffae96 100644 --- a/tests/stack.rs +++ b/tests/stack.rs @@ -40,7 +40,11 @@ fn test_stack_overflow_parsing() -> Result<(), Box> { ParseErrorType::ExprTooDeep ); - engine.set_max_expr_depths(100, 6); + engine.set_max_expr_depths( + 100, + #[cfg(not(feature = "no_module"))] + 6, + ); engine.compile("1 + 2")?; engine.compile(