[
https://issues.apache.org/jira/browse/GROOVY-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15450406#comment-15450406
]
John Wagenleitner commented on GROOVY-3309:
-------------------------------------------
Added code tags and also want to mention another test case from GROOVY-4018
that should pass:
{code}
assert !(Double.NaN)
{code}
> comparisons with NaN should always return false
> -----------------------------------------------
>
> Key: GROOVY-3309
> URL: https://issues.apache.org/jira/browse/GROOVY-3309
> Project: Groovy
> Issue Type: Bug
> Components: groovy-runtime
> Affects Versions: 1.5.7, 1.6-rc-2
> Environment: os x, jse 5 and 6
> Reporter: Andy Fyfe
> Fix For: 3.0
>
>
> The following assertions should all pass; the third fails.
> {code}
> assert !(Double.NaN == 0)
> assert !(Double.NaN < 0)
> assert !(Double.NaN > 0)
> {code}
> A NaN should also not equal a NaN.
> {code}assert Double.NaN != Double.NaN{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)