14 lines
277 B
Rust
14 lines
277 B
Rust
extern crate rhai;
|
|
|
|
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()))
|
|
);
|
|
}
|