Skip to content

Commit 5855fb7

Browse files
author
chansuke
committed
Move f64::NAN ui tests into library
1 parent f2bbdd0 commit 5855fb7

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

library/core/tests/num/nan.rs

+8
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+
}

src/test/ui/format-nan.rs

-9
This file was deleted.

0 commit comments

Comments
 (0)