mirror of https://github.com/rust-lang/rust.git
Fix format
This commit is contained in:
parent
5855fb7b79
commit
97d5a1be3f
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue