[
https://issues.apache.org/jira/browse/GROOVY-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Wagenleitner updated GROOVY-3309:
--------------------------------------
Description:
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}
was:
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
> 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)