Fix format
This commit is contained in:
parent
5855fb7b79
commit
97d5a1be3f
1 changed files with 5 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue