CLosures test fix

This commit is contained in:
Ilya Lakhin 2020-08-09 18:55:01 +07:00
parent 39ee74112c
commit d84ef1a0d1

View File

@ -102,9 +102,9 @@ fn test_closures() -> Result<(), Box<EvalAltResult>> {
assert_eq!(
engine.eval::<INT>(
r#"
let a = 42.0;
let a = 41;
let b = 0;
let f = || b.custom_call(|| a.to_int());
let f = || b.custom_call(|| a + 1);
f.call()
"#