<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>12661</bug_id>
          
          <creation_ts>2011-05-16 14:15:26 +0000</creation_ts>
          <short_desc>fold-right() results seem to be wrong</short_desc>
          <delta_ts>2013-06-10 16:44:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter M. Fischer">peter.fischer</reporter>
          <assigned_to name="Benjamin Nguyen">benjie.nguyen</assigned_to>
          <cc>oneil</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48534</commentid>
    <comment_count>0</comment_count>
    <who name="Peter M. Fischer">peter.fischer</who>
    <bug_when>2011-05-16 14:15:26 +0000</bug_when>
    <thetext>Several of the results of fold-right seem to be wrong:

- fold-right-001: Expected result is &lt;out&gt;0&lt;/out&gt;, but the spec says &lt;out&gt;15&lt;/out&gt;. 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 &lt;out&gt;$f(1, $f(2, $f(3, $f(4, $f(5, $zero)))))&lt;/out&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88998</commentid>
    <comment_count>1</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-06-10 16:44:15 +0000</bug_when>
    <thetext>Bug issue resolved in QT3.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>