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]