Update iterators3.rs

This commit is contained in:
Lars Schumann 2025-02-24 20:01:32 +01:00 committed by GitHub
parent edcf19da0d
commit b99e942ef2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,11 +72,11 @@ mod tests {
Err(DivisionError::NotDivisible)
);
assert_eq!(
result_with_list(vec![27, 297, 38502, 28], 0),
result_with_list(vec![27, 297, 38502, 81], 0),
Err(DivisionError::DivideByZero)
);
assert_eq!(
result_with_list(vec![27, 297, i64::MIN, 28], -1),
result_with_list(vec![27, 297, i64::MIN, 81], -1),
Err(DivisionError::IntegerOverflow)
);
}