From ed18b3f32a11ef9c6a9fb6c35058359affec97b6 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 25 Apr 2021 15:27:43 +0800 Subject: [PATCH] Fix unchecked test. --- tests/for.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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::( "