From e6caf3a2c9c492050750d10fd7ba6392e22e9c9d Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 11 May 2024 06:11:58 +0800 Subject: [PATCH] Fix test. --- tests/custom_syntax.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/custom_syntax.rs b/tests/custom_syntax.rs index dba3fe7e6..30a50fe30 100644 --- a/tests/custom_syntax.rs +++ b/tests/custom_syntax.rs @@ -281,8 +281,8 @@ fn test_custom_syntax_func() { .register_custom_syntax(["hello", "$func$"], false, |context, inputs| context.eval_expression_tree(&inputs[0])) .unwrap(); - assert_eq!(engine.eval::("(hello |x| { x + 1 }).call(41)").unwrap(), 42); - assert_eq!(engine.eval::("(hello { 42 }).call()").unwrap(), 42); + assert_eq!(engine.eval::("call(hello |x| { x + 1 }, 41)").unwrap(), 42); + assert_eq!(engine.eval::("call(hello { 42 })").unwrap(), 42); } #[test]