This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19678 - [QT3] alternate result for cbcl-avg-001
Summary: [QT3] alternate result for cbcl-avg-001
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Tim Mills
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-23 21:23 UTC by Andrew Eisenberg
Modified: 2012-10-24 13:43 UTC (History)
1 user (show)

See Also:


Attachments

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.