Fix format

This commit is contained in:
chansuke 2020-11-05 08:40:04 +09:00
parent 5855fb7b79
commit 97d5a1be3f
1 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,8 @@
#[test] #[test]
fn test_nan() { fn test_nan() {
use core::f64; use core::f64;
let x = "NaN".to_string(); let x = "NaN".to_string();
assert_eq!(format!("{}", f64::NAN), x); assert_eq!(format!("{}", f64::NAN), x);
assert_eq!(format!("{:e}", f64::NAN), x); assert_eq!(format!("{:e}", f64::NAN), x);
assert_eq!(format!("{:E}", f64::NAN), x); assert_eq!(format!("{:E}", f64::NAN), x);
} }