From cc25d831b6ad1764cc947d95ae0e88034acb4026 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 11 May 2024 22:14:09 +0800 Subject: [PATCH] Fix test. --- tests/custom_syntax.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/custom_syntax.rs b/tests/custom_syntax.rs index 47eee83d4..ac504dfe7 100644 --- a/tests/custom_syntax.rs +++ b/tests/custom_syntax.rs @@ -283,6 +283,8 @@ fn test_custom_syntax_func() { assert_eq!(engine.eval::("call(hello |x| { x + 1 }, 41)").unwrap(), 42); assert_eq!(engine.eval::("call(hello { 42 })").unwrap(), 42); + + #[cfg(not(feature = "no_closure"))] assert_eq!( engine .eval::(