Skip to content

Commit 4f9f090

Browse files
committed
Add positive tests
This prevents solving the exercise without a real IntegerOverflow
1 parent f248619 commit 4f9f090

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

exercises/18_iterators/iterators3.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ mod tests {
3939
#[test]
4040
fn test_success() {
4141
assert_eq!(divide(81, 9), Ok(9));
42+
assert_eq!(divide(81, -1), Ok(-81));
43+
assert_eq!(divide(i64::MIN, i64::MIN), Ok(1));
4244
}
4345

4446
#[test]

0 commit comments

Comments
 (0)