separated tests for mergability
This commit is contained in:
11
src/tests/mismatched_op.rs
Normal file
11
src/tests/mismatched_op.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
use engine::{Engine, EvalAltResult};
|
||||
|
||||
#[test]
|
||||
fn test_mismatched_op() {
|
||||
let mut engine = Engine::new();
|
||||
|
||||
match engine.eval::<i64>("60 + \"hello\"") {
|
||||
Err(EvalAltResult::ErrorFunctionArgMismatch) => (),
|
||||
_ => assert!(false),
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user