Fix build and all tests

This commit is contained in:
torkleyy
2017-12-20 21:09:53 +01:00
parent 3672414212
commit 348a680980
11 changed files with 68 additions and 21 deletions

View File

@@ -4,8 +4,8 @@ use engine::{Engine, EvalAltResult};
fn test_mismatched_op() {
let mut engine = Engine::new();
match engine.eval::<i64>("60 + \"hello\"") {
Err(EvalAltResult::ErrorFunctionArgMismatch) => (),
_ => assert!(false),
}
assert_eq!(
engine.eval::<i64>("60 + \"hello\""),
Err(EvalAltResult::ErrorFunctionNotFound)
);
}