Change object maps to #{ ... }

This commit is contained in:
Stephen Chung
2020-03-30 17:40:26 +08:00
parent ee18f047b4
commit 01c0b51017
5 changed files with 39 additions and 36 deletions

View File

@@ -24,11 +24,11 @@ fn test_type_of() -> Result<(), EvalAltResult> {
"array"
);
// #[cfg(not(feature = "no_object"))]
// assert_eq!(
// engine.eval::<String>(r#"type_of(${a:true, "":2, "z":"hello"})"#)?,
// "map"
// );
#[cfg(not(feature = "no_object"))]
assert_eq!(
engine.eval::<String>(r#"type_of(#{a:true, "":2, "z":"hello"})"#)?,
"map"
);
#[cfg(not(feature = "no_object"))]
{