Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
schungx committed May 10, 2024
1 parent dc37f6e commit e6caf3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/custom_syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<INT>("(hello |x| { x + 1 }).call(41)").unwrap(), 42);
assert_eq!(engine.eval::<INT>("(hello { 42 }).call()").unwrap(), 42);
assert_eq!(engine.eval::<INT>("call(hello |x| { x + 1 }, 41)").unwrap(), 42);
assert_eq!(engine.eval::<INT>("call(hello { 42 })").unwrap(), 42);
}

#[test]
Expand Down

0 comments on commit e6caf3a

Please sign in to comment.