Fix test again.
This commit is contained in:
parent
905b0b8332
commit
d0998a44b9
@ -241,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" | "i32 if item.is_even => break count,
|
"i64" | "i32" if item.is_even => break count,
|
||||||
"f64" | "f32 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