Add eval test.

This commit is contained in:
Stephen Chung
2020-03-19 20:55:53 +08:00
parent 702b2010f2
commit 36b7124dd5
2 changed files with 62 additions and 4 deletions

View File

@@ -42,10 +42,7 @@ fn test_scope_eval() -> Result<(), EvalAltResult> {
assert_eq!(
scope
.get_value::<INT>("y")
.ok_or(EvalAltResult::ErrorRuntime(
"variable y not found".into(),
Default::default()
))?,
.expect("variable y should exist"),
1
);