Fix test.
This commit is contained in:
parent
de81941c2c
commit
905b0b8332
@ -233,7 +233,6 @@ fn test_for_loop() -> Result<(), Box<EvalAltResult>> {
|
|||||||
|
|
||||||
#[cfg(not(feature = "no_index"))]
|
#[cfg(not(feature = "no_index"))]
|
||||||
#[cfg(not(feature = "no_object"))]
|
#[cfg(not(feature = "no_object"))]
|
||||||
#[cfg(not(feature = "only_i32"))]
|
|
||||||
#[cfg(not(feature = "no_float"))]
|
#[cfg(not(feature = "no_float"))]
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
engine.eval::<INT>(
|
engine.eval::<INT>(
|
||||||
@ -242,8 +241,8 @@ fn test_for_loop() -> Result<(), Box<EvalAltResult>> {
|
|||||||
|
|
||||||
for (item, count) in a {
|
for (item, count) in a {
|
||||||
switch item.type_of() {
|
switch item.type_of() {
|
||||||
"i64" if item.is_even => break count,
|
"i64" | "i32 if item.is_even => break count,
|
||||||
"f64" if item.to_int().is_even => break count,
|
"f64" | "f32 if item.to_int().is_even => break count,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"#
|
"#
|
||||||
|
Loading…
Reference in New Issue
Block a user