commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Vladimirov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JXPATH-102) Core rounding functions don't handle NaN correctly
Date Thu, 23 Aug 2007 10:20:31 GMT

     [ https://issues.apache.org/jira/browse/JXPATH-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sergey Vladimirov updated JXPATH-102:
-------------------------------------

    Attachment: patch.txt

> Core rounding functions don't handle NaN correctly
> --------------------------------------------------
>
>                 Key: JXPATH-102
>                 URL: https://issues.apache.org/jira/browse/JXPATH-102
>             Project: Commons JXPath
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Sergey Vladimirov
>             Fix For: 1.3
>
>         Attachments: patch.txt, testcase-patch.txt
>
>
>         assertXPathValue(context, "floor('NaN')", new Double(Double.NaN));
>         assertXPathValue(context, "floor(-2 div 0)", new Double(Double.NEGATIVE_INFINITY));
>         assertXPathValue(context, "floor(2 div 0)", new Double(Double.POSITIVE_INFINITY));
>         assertXPathValue(context, "ceiling('NaN')", new Double(Double.NaN));
>         assertXPathValue(context, "ceiling(-2 div 0)", new Double(Double.NEGATIVE_INFINITY));
>         assertXPathValue(context, "ceiling(2 div 0)", new Double(Double.POSITIVE_INFINITY));
>         assertXPathValue(context, "round('NaN')", new Double(Double.NaN));
>         assertXPathValue(context, "round(-2 div 0)", new Double(Double.NEGATIVE_INFINITY));
>         assertXPathValue(context, "round(2 div 0)", new Double(Double.POSITIVE_INFINITY));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message