]> git.lizzy.rs Git - rust.git/blob - library/core/tests/num/nan.rs
011ffa790beeecbbf8301c9cbaffbac4565b92c7
[rust.git] / library / core / tests / num / nan.rs
1 #[test]
2 fn test_nan() {
3     use core::f64;
4     let x = "NaN".to_string();
5     assert_eq!(format!("{}", f64::NAN), x);
6     assert_eq!(format!("{:e}", f64::NAN), x);
7     assert_eq!(format!("{:E}", f64::NAN), x);
8 }