auto merge of #16475 : treeman/rust/complex-divide-by-zero-test, r=alexcrichton
Did not find a test for it.
This commit is contained in:
commit
bc181f8075
|
@ -257,6 +257,14 @@ mod test {
|
|||
assert_eq!(_1_0i.inv(), _1_0i.inv());
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_fail]
|
||||
fn test_divide_by_zero_natural() {
|
||||
let n = Complex::new(2i, 3i);
|
||||
let d = Complex::new(0, 0);
|
||||
let _x = n / d;
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_fail]
|
||||
#[ignore]
|
||||
|
|
Loading…
Reference in New Issue