CLosures test fix
This commit is contained in:
parent
39ee74112c
commit
d84ef1a0d1
@ -102,9 +102,9 @@ fn test_closures() -> Result<(), Box<EvalAltResult>> {
|
|||||||
assert_eq!(
|
assert_eq!(
|
||||||
engine.eval::<INT>(
|
engine.eval::<INT>(
|
||||||
r#"
|
r#"
|
||||||
let a = 42.0;
|
let a = 41;
|
||||||
let b = 0;
|
let b = 0;
|
||||||
let f = || b.custom_call(|| a.to_int());
|
let f = || b.custom_call(|| a + 1);
|
||||||
|
|
||||||
f.call()
|
f.call()
|
||||||
"#
|
"#
|
||||||
|
Loading…
Reference in New Issue
Block a user