Skip to content

Commit 206c0de

Browse files
mbrubeckbrson
authored andcommitted
---
yaml --- r: 6029 b: refs/heads/master c: 9c5c108 h: refs/heads/master i: 6027: d77c043 v: v3
1 parent d52191b commit 206c0de

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 45d77779916a7af0b2b7656453e31eea9f4b3cfa
2+
refs/heads/master: 9c5c108d5b9e6f94a0dc8d48a7baa7782cc871d3

trunk/src/test/run-pass/float-nan.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,12 @@ fn main() {
7171
assert(float::isNaN(0. / 0.));
7272
assert(float::isNaN(-inf + inf));
7373
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));
7482
}

0 commit comments

Comments
 (0)