Fix unchecked build.
This commit is contained in:
parent
8d34ffb9f5
commit
b76a2be7c3
@ -29,6 +29,7 @@ fn test_try_catch() -> Result<(), Box<EvalAltResult>> {
|
|||||||
123
|
123
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#[cfg(not(feature = "unchecked"))]
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
engine.eval::<INT>("let x = 42; try { let y = 123; print(x/0); } catch { x = 0 } x")?,
|
engine.eval::<INT>("let x = 42; try { let y = 123; print(x/0); } catch { x = 0 } x")?,
|
||||||
0
|
0
|
||||||
|
Loading…
Reference in New Issue
Block a user