]> git.lizzy.rs Git - rust.git/commitdiff
Fix format
authorchansuke <chansuke@georepublic.de>
Wed, 4 Nov 2020 23:40:04 +0000 (08:40 +0900)
committerchansuke <chansuke@georepublic.de>
Wed, 4 Nov 2020 23:40:04 +0000 (08:40 +0900)
library/core/tests/num/nan.rs

index 6d64f93cfa4b55c477fd16dcdaddbda49c78a440..011ffa790beeecbbf8301c9cbaffbac4565b92c7 100644 (file)
@@ -1,8 +1,8 @@
 #[test]
 fn test_nan() {
-  use core::f64;
-  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);
+    use core::f64;
+    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);
 }