Fix tests.

This commit is contained in:
Stephen Chung
2020-11-17 12:40:12 +08:00
parent 038e3c2554
commit df72d324ba
3 changed files with 6 additions and 11 deletions

View File

@@ -57,16 +57,10 @@ fn test_module_sub_module() -> Result<(), Box<EvalAltResult>> {
assert!(engine
.eval::<INT>("inc(question::life::universe::answer)")
.is_err());
#[cfg(not(feature = "no_object"))]
assert_eq!(
engine.eval::<INT>("super_inc(question::life::universe::answer)")?,
42
);
#[cfg(feature = "no_object")]
assert!(engine
.eval::<INT>("super_inc(question::life::universe::answer)")
.is_err());
Ok(())
}