We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d52191b commit 206c0deCopy full SHA for 206c0de
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 45d77779916a7af0b2b7656453e31eea9f4b3cfa
+refs/heads/master: 9c5c108d5b9e6f94a0dc8d48a7baa7782cc871d3
trunk/src/test/run-pass/float-nan.rs
@@ -71,4 +71,12 @@ fn main() {
71
assert(float::isNaN(0. / 0.));
72
assert(float::isNaN(-inf + inf));
73
assert(float::isNaN(inf - inf));
74
+
75
+ assert(!float::isNaN(-1.));
76
+ assert(!float::isNaN(0.));
77
+ assert(!float::isNaN(0.1));
78
+ assert(!float::isNaN(1.));
79
+ assert(!float::isNaN(inf));
80
+ assert(!float::isNaN(-inf));
81
+ assert(!float::isNaN(1./-inf));
82
}
0 commit comments