mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-28 06:49:19 +00:00
Sync solution
This commit is contained in:
parent
6765a0b61a
commit
b6b94e3e96
@ -52,6 +52,8 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_success() {
|
fn test_success() {
|
||||||
assert_eq!(divide(81, 9), Ok(9));
|
assert_eq!(divide(81, 9), Ok(9));
|
||||||
|
assert_eq!(divide(81, -1), Ok(-81));
|
||||||
|
assert_eq!(divide(i64::MIN, i64::MIN), Ok(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user