[
https://issues.apache.org/jira/browse/JXPATH-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Vladimirov updated JXPATH-102:
-------------------------------------
Attachment: testcase-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.