Fix unchecked build.

This commit is contained in:
Stephen Chung 2022-01-24 08:49:41 +08:00
parent 8d34ffb9f5
commit b76a2be7c3

View File

@ -29,6 +29,7 @@ fn test_try_catch() -> Result<(), Box<EvalAltResult>> {
123
);
#[cfg(not(feature = "unchecked"))]
assert_eq!(
engine.eval::<INT>("let x = 42; try { let y = 123; print(x/0); } catch { x = 0 } x")?,
0