Bug 19678 - [QT3] alternate result for cbcl-avg-001
[QT3] alternate result for cbcl-avg-001
Status: CLOSED FIXED
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite
Last Call drafts
PC Windows XP
: P2 normal
: ---
Assigned To: Tim Mills
Mailing list for public feedback on specs from XSL and XML Query WGs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-23 21:23 UTC by Andrew Eisenberg
Modified: 2012-10-24 13:43 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Eisenberg 2012-10-23 21:23:41 UTC
Test case cbcl-avg-001 expects FOAR0002:

fn:avg((xs:decimal("79000000000000000000000000000"),
        xs:decimal("79000000000000000000000000000")))

I suggest that 79000000000000000000000000000.0 be allowed as well. XML Schema says that implementations must support at least 16 total digits for xs:decimal.
Comment 1 Tim Mills 2012-10-24 08:25:33 UTC
Could you please specify the exact assertion that you'd like me to add?
Comment 2 Michael Kay 2012-10-24 08:38:43 UTC
Since we don't want assertions to have implementation-defined behaviour, I would suggest changing the test to 

fn:avg((xs:decimal("79000000000000000000000000000"),
        xs:decimal("79000000000000000000000000000")))
   eq 79000000000000000000000000000

and changing the expected result to be either true or FOAR0002.
Comment 3 Tim Mills 2012-10-24 12:16:20 UTC
Should now be fixed as in comment #2.  Please CLOSE this report if you agree.