diff --git a/tests/throw.rs b/tests/throw.rs index 9aaccab0..79bd2424 100644 --- a/tests/throw.rs +++ b/tests/throw.rs @@ -29,6 +29,7 @@ fn test_try_catch() -> Result<(), Box> { 123 ); + #[cfg(not(feature = "unchecked"))] assert_eq!( engine.eval::("let x = 42; try { let y = 123; print(x/0); } catch { x = 0 } x")?, 0