- From: <bugzilla@jessica.w3.org>
- Date: Mon, 08 Apr 2013 13:09:05 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21619
Bug ID: 21619
Summary: wrong results when handeling -0 negativeZero
Classification: Unclassified
Product: XPath / XQuery / XSLT
Version: Working drafts
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: XQuery 3 & XPath 3 Test Suite
Assignee: oneil@saxonica.com
Reporter: cezar.andrei@gmail.com
QA Contact: public-qt-comments@w3.org
Test case prod-FLWORExpr/ForExprType010 and prod-OrderByClause/orderBy26 should
check for a return value of -0 not 0. The two cases load up the value -0 from
an XML document as decimal values and returns it. According to XMLSchema 1.1
http://www.w3.org/TR/xmlschema11-2/#sec-chnum and the note on
http://www.w3.org/TR/xpath-functions-30/#numeric-types -0 and 0 are distinct
values and should be treated acordingly.
Related is prod-OrderByClause/orderBy29 that returns ($x * -1e0) where $x is
-0. Since it doesn't come from "-0" sting or the result of "-" unary opperator
it should return just 0 (pozitive zero).
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 8 April 2013 13:09:12 UTC