2020-10-27 00:29:57 +00:00
|
|
|
#[test]
|
|
|
|
fn test_nan() {
|
2020-11-04 23:40:04 +00:00
|
|
|
let x = "NaN".to_string();
|
|
|
|
assert_eq!(format!("{}", f64::NAN), x);
|
|
|
|
assert_eq!(format!("{:e}", f64::NAN), x);
|
|
|
|
assert_eq!(format!("{:E}", f64::NAN), x);
|
2020-10-27 00:29:57 +00:00
|
|
|
}
|