Skip to content

Commit 4883dca

Browse files
author
chansuke
committed
Move f64::NAN ui tests into library
1 parent 93f5f8e commit 4883dca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/tests/num/nan.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#[test]
2+
fn test_nan() {
3+
use core::f64;
4+
let x = "NaN".to_string();
5+
assert_eq!(format!("{}", f64::NAN), x);
6+
assert_eq!(format!("{:e}", f64::NAN), x);
7+
assert_eq!(format!("{:E}", f64::NAN), x);
8+
}

0 commit comments

Comments
 (0)