Add more isNaN tests
This commit is contained in:
parent
45d7777991
commit
9c5c108d5b
@ -71,4 +71,12 @@ fn main() {
|
||||
assert(float::isNaN(0. / 0.));
|
||||
assert(float::isNaN(-inf + inf));
|
||||
assert(float::isNaN(inf - inf));
|
||||
|
||||
assert(!float::isNaN(-1.));
|
||||
assert(!float::isNaN(0.));
|
||||
assert(!float::isNaN(0.1));
|
||||
assert(!float::isNaN(1.));
|
||||
assert(!float::isNaN(inf));
|
||||
assert(!float::isNaN(-inf));
|
||||
assert(!float::isNaN(1./-inf));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user