diff --git a/tests/closures.rs b/tests/closures.rs index 66dad215..9d22fda3 100644 --- a/tests/closures.rs +++ b/tests/closures.rs @@ -102,9 +102,9 @@ fn test_closures() -> Result<(), Box> { assert_eq!( engine.eval::( 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() "#