summary refs log tree commit diff
path: root/src/libstd/f32.rs
diff options
context:
space:
mode:
authorJacob Kiesel <kieseljake@gmail.com>2017-09-08 16:07:09 -0600
committerJacob Kiesel <kieseljake@gmail.com>2017-09-08 16:07:09 -0600
commit67283fa8e6ec6ffb1db782c6862d3bdec45cecf8 (patch)
treee82203462d68387dd1953ca26dfbcea81965b48e /src/libstd/f32.rs
parentb762283e57ff71f6763effb9cfc7fc0c7967b6b0 (diff)
downloadrust-67283fa8e6ec6ffb1db782c6862d3bdec45cecf8.tar.gz
rust-67283fa8e6ec6ffb1db782c6862d3bdec45cecf8.zip
Revert "Add panic unit tests"
This reverts commit b762283e57ff71f6763effb9cfc7fc0c7967b6b0.
Diffstat (limited to 'src/libstd/f32.rs')
-rw-r--r--src/libstd/f32.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/libstd/f32.rs b/src/libstd/f32.rs
index 69ca77f54b4..aaeac06535e 100644
--- a/src/libstd/f32.rs
+++ b/src/libstd/f32.rs
@@ -1777,22 +1777,4 @@ mod tests {
         assert_ne!(nan_masked & QNAN_MASK, 0);
         assert!(nan_masked_fl.is_nan());
     }
-
-    #[test]
-    #[should_panic]
-    fn test_clamp_min_greater_than_max() {
-        1.0f32.clamp(3.0, 1.0);
-    }
-
-    #[test]
-    #[should_panic]
-    fn test_clamp_min_is_nan() {
-        1.0f32.clamp(NAN, 1.0);
-    }
-
-    #[test]
-    #[should_panic]
-    fn test_clamp_max_is_nan() {
-        1.0f32.clamp(3.0, NAN);
-    }
 }