]> git.lizzy.rs Git - rust.git/blob - library/core/tests/num/nan.rs
Move f64::NAN ui tests into `library`
[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 }