about summary refs log tree commit diff
path: root/src/libnum
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnum')
-rw-r--r--src/libnum/complex.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libnum/complex.rs b/src/libnum/complex.rs
index f4a3ac97a4e..66412eb678f 100644
--- a/src/libnum/complex.rs
+++ b/src/libnum/complex.rs
@@ -259,6 +259,14 @@ mod test {
 
     #[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]
     fn test_inv_zero() {
         // FIXME #5736: should this really fail, or just NaN?