From de81941c2c2c5036d24328e304413bb485af6ccf Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 29 Oct 2022 12:57:58 +0800 Subject: [PATCH] Fix test. --- tests/for.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/for.rs b/tests/for.rs index 63c8ae92..c8353b51 100644 --- a/tests/for.rs +++ b/tests/for.rs @@ -233,10 +233,12 @@ fn test_for_loop() -> Result<(), Box> { #[cfg(not(feature = "no_index"))] #[cfg(not(feature = "no_object"))] + #[cfg(not(feature = "only_i32"))] + #[cfg(not(feature = "no_float"))] assert_eq!( engine.eval::( r#" - let a = [123, 999, 42, 0, true, "hello", "world!"]; + let a = [123, 999, 42, 0, true, "hello", "world!", 987.654]; for (item, count) in a { switch item.type_of() {