From 905b0b83325b5d48f97a7c52145b7a87610a625b Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 29 Oct 2022 12:58:38 +0800 Subject: [PATCH] Fix test. --- tests/for.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/for.rs b/tests/for.rs index c8353b51..a379a977 100644 --- a/tests/for.rs +++ b/tests/for.rs @@ -233,7 +233,6 @@ 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::( @@ -242,8 +241,8 @@ fn test_for_loop() -> Result<(), Box> { for (item, count) in a { switch item.type_of() { - "i64" if item.is_even => break count, - "f64" if item.to_int().is_even => break count, + "i64" | "i32 if item.is_even => break count, + "f64" | "f32 if item.to_int().is_even => break count, } } "#