mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-22 16:28:07 +00:00
8 lines
193 B
Rust
8 lines
193 B
Rust
#[test]
|
|
fn test_nan() {
|
|
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);
|
|
}
|