extern crate rhai; use rhai::{Engine, EvalAltResult}; #[test] fn test_mismatched_op() { let mut engine = Engine::new(); assert_eq!( engine.eval::("60 + \"hello\""), Err(EvalAltResult::ErrorFunctionNotFound("+ (integer,string)".into())) ); }