]> git.lizzy.rs Git - rust.git/blob - library/core/tests/num/nan.rs
Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup
[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 }