From d84ef1a0d11bc022a518bca5f9ac09e728bce631 Mon Sep 17 00:00:00 2001 From: Ilya Lakhin Date: Sun, 9 Aug 2020 18:55:01 +0700 Subject: [PATCH] CLosures test fix --- tests/closures.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() "#