Fix test.
This commit is contained in:
parent
6e5c903241
commit
ea814779bf
@ -40,7 +40,11 @@ fn test_stack_overflow_parsing() -> Result<(), Box<EvalAltResult>> {
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user