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 12661 - fold-right() results seem to be wrong
Summary: fold-right() results seem to be wrong
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-16 14:15 UTC by Peter M. Fischer
Modified: 2013-06-10 16:44 UTC (History)
1 user (show)

See Also:


Attachments

Description Peter M. Fischer 2011-05-16 14:15:26 UTC
Several of the results of fold-right seem to be wrong:

- fold-right-001: Expected result is <out>0</out>, but the spec says <out>15</out>. In addition, fold-left-001 also has 15 as expected result, and + is associative.
- same problem with fold-right-002: expected 1, should be 210
- same with fold-right-003: expected false, should be true
- fold-right-005: expected (), should be 5 4 3 2 1
- fold-right-006: expected ., should be 1.2.3.4.5.
- fold-right-007: expected ., should be <out>$f(1, $f(2, $f(3, $f(4, $f(5, $zero)))))</out>
Comment 1 O'Neil Delpratt 2013-06-10 16:44:15 UTC
Bug issue resolved in QT3.