Fix test.

This commit is contained in:
Stephen Chung 2023-04-11 10:35:24 +08:00
parent 407d376a61
commit dd0d1dd7ca

View File

@ -212,6 +212,7 @@ fn test_optimizer_full() -> Result<(), Box<EvalAltResult>> {
let ast = engine.compile(SCRIPT)?;
#[cfg(feature = "internals")]
assert_eq!(ast.statements().len(), 2);
assert_eq!(engine.eval_ast_with_scope::<INT>(&mut scope, &ast)?, 42);