Fix test.

This commit is contained in:
Stephen Chung 2022-08-30 12:31:47 +08:00
parent 044484c756
commit cfdca74beb

View File

@ -82,6 +82,7 @@ fn test_options_strict_var() -> Result<(), Box<EvalAltResult>> {
assert!(engine.compile("let x = if y { z } else { w };").is_err());
#[cfg(not(feature = "no_object"))]
engine.compile_with_scope(&mut scope, "if x.abs() { y } else { x + y.len };")?;
engine.compile("let y = 42; let x = y;")?;