Change consume to run.

This commit is contained in:
Stephen Chung 2021-09-27 10:59:38 +08:00
parent fe47058add
commit c4a00f5269

View File

@ -208,7 +208,7 @@ fn test_get_set_chain_without_write_back() -> Result<(), Box<EvalAltResult>> {
engine.eval_with_scope::<INT>(&mut scope, "outer.inner.value")?, engine.eval_with_scope::<INT>(&mut scope, "outer.inner.value")?,
42 42
); );
engine.consume_with_scope(&mut scope, "print(outer.inner.value)")?; engine.run_with_scope(&mut scope, "print(outer.inner.value)")?;
Ok(()) Ok(())
} }