rhai/tests/mismatched_op.rs
2019-09-18 11:21:07 +01:00

14 lines
279 B
Rust

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