Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.5.7, 1.6-rc-2
-
None
-
os x, jse 5 and 6
Description
The following assertions should all pass; the third fails.
assert !(Double.NaN == 0) assert !(Double.NaN < 0) assert !(Double.NaN > 0)
A NaN should also not equal a NaN.
assert Double.NaN != Double.NaN
Attachments
Issue Links
- is duplicated by
-
GROOVY-4906 Double.NaN == Double.Nan should evaluate to false
- Closed
- relates to
-
GROOVY-4018 Make the Groovy truth value of NaN be false
- Closed