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, } } "#