Fix test.

This commit is contained in:
Stephen Chung 2020-10-18 22:24:01 +08:00
parent 6e5c903241
commit ea814779bf

View File

@ -40,7 +40,11 @@ fn test_stack_overflow_parsing() -> Result<(), Box<EvalAltResult>> {
ParseErrorType::ExprTooDeep 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("1 + 2")?;
engine.compile( engine.compile(