Fix test.

This commit is contained in:
Stephen Chung 2022-10-29 12:58:38 +08:00
parent de81941c2c
commit 905b0b8332

View File

@ -233,7 +233,6 @@ fn test_for_loop() -> Result<(), Box<EvalAltResult>> {
#[cfg(not(feature = "no_index"))]
#[cfg(not(feature = "no_object"))]
#[cfg(not(feature = "only_i32"))]
#[cfg(not(feature = "no_float"))]
assert_eq!(
engine.eval::<INT>(
@ -242,8 +241,8 @@ fn test_for_loop() -> Result<(), Box<EvalAltResult>> {
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,
}
}
"#