mirror of https://github.com/rust-lang/rust.git
Move f64::NAN ui tests into `library`
This commit is contained in:
parent
f2bbdd0a32
commit
5855fb7b79
|
@ -0,0 +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);
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
// run-pass
|
||||
|
||||
pub fn main() {
|
||||
use std::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…
Reference in New Issue