diff --git a/tests/for.rs b/tests/for.rs index 381809d6..0a7cb840 100644 --- a/tests/for.rs +++ b/tests/for.rs @@ -8,7 +8,7 @@ use rhai::FLOAT; use rust_decimal::Decimal; #[test] -fn test_for() -> Result<(), Box> { +fn test_for_loop() -> Result<(), Box> { let engine = Engine::new(); #[cfg(not(feature = "no_index"))] @@ -59,6 +59,7 @@ fn test_for() -> Result<(), Box> { 25 ); + #[cfg(not(feature = "unchecked"))] assert_eq!( engine.eval::( " @@ -70,6 +71,7 @@ fn test_for() -> Result<(), Box> { 0 ); + #[cfg(not(feature = "unchecked"))] assert_eq!( engine.eval::( " @@ -105,6 +107,7 @@ fn test_for() -> Result<(), Box> { 25.0 ); + #[cfg(not(feature = "unchecked"))] assert_eq!( engine.eval::( " @@ -116,6 +119,7 @@ fn test_for() -> Result<(), Box> { 0.0 ); + #[cfg(not(feature = "unchecked"))] assert_eq!( engine.eval::( " @@ -153,6 +157,7 @@ fn test_for() -> Result<(), Box> { Decimal::from(25) ); + #[cfg(not(feature = "unchecked"))] assert_eq!( engine.eval::( " @@ -164,6 +169,7 @@ fn test_for() -> Result<(), Box> { Decimal::from(0) ); + #[cfg(not(feature = "unchecked"))] assert_eq!( engine.eval::( "