Fix builds.

This commit is contained in:
Stephen Chung 2021-12-18 17:59:32 +08:00
parent 7eda6454a8
commit aa8cc8f719

View File

@ -268,6 +268,7 @@ fn test_custom_syntax_raw2() -> Result<(), Box<EvalAltResult>> {
); );
assert_eq!(engine.eval::<INT>("let x = 41; x + #1")?, 42); assert_eq!(engine.eval::<INT>("let x = 41; x + #1")?, 42);
#[cfg(not(feature = "no_object"))]
assert_eq!(engine.eval::<INT>("#-42.abs()")?, 42); assert_eq!(engine.eval::<INT>("#-42.abs()")?, 42);
assert_eq!(engine.eval::<INT>("#42/2")?, 21); assert_eq!(engine.eval::<INT>("#42/2")?, 21);
assert_eq!(engine.eval::<INT>("#-1")?, -1); assert_eq!(engine.eval::<INT>("#-1")?, -1);