Fix tests.

This commit is contained in:
Stephen Chung
2020-11-30 21:16:59 +08:00
parent 1004bca5b5
commit 4c4a209609
3 changed files with 10 additions and 10 deletions

View File

@@ -42,6 +42,7 @@ impl std::fmt::Display for MyStruct {
}
}
#[cfg(not(feature = "no_object"))]
#[test]
fn test_print_custom_type() -> Result<(), Box<EvalAltResult>> {
let mut engine = Engine::new();
@@ -65,7 +66,6 @@ fn test_print_custom_type() -> Result<(), Box<EvalAltResult>> {
r#"[123, true, (), "world", hello: 42]"#
);
#[cfg(not(feature = "no_object"))]
assert!(engine
.eval::<String>(
r#"