diff --git a/src/engine.rs b/src/engine.rs index 1ca95afd..b817dff7 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -841,6 +841,16 @@ fn test_ops() { } } +#[test] +fn test_mismatched_op() { + let mut engine = Engine::new(); + + match engine.eval::("60 + \"hello\"") { + Err(EvalAltResult::ErrorFunctionArgMismatch) => (), + _ => assert!(false) + } +} + #[test] fn test_bool_op1() { let mut engine = Engine::new();