Fix format
This commit is contained in:
parent
5855fb7b79
commit
97d5a1be3f
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user