separated tests for mergability

This commit is contained in:
russ
2017-11-03 09:58:51 -07:00
parent 8e4ded77b0
commit 037a9cdc67
26 changed files with 888 additions and 838 deletions

View 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),
}
}