[Bug 26859] New: orderBy63 may not test intended error conditions

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26859

            Bug ID: 26859
           Summary: orderBy63 may not test intended error conditions
           Product: XML Query Test Suite
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
          Assignee: benjie.nguyen@gmail.com
          Reporter: josh.spiegel@oracle.com
        QA Contact: public-qt-comments@w3.org

<test-case name="orderBy63" xmlns="http://www.w3.org/2010/09/qt-fots-catalog">
      <description>Test that the context item for evaluating a sort key is NOT
the item whose sort key is being computed</description>
      <created by="Michael Kay" on="2011-07-30"/>
      <environment ref="orderdata"/>
      <dependency type="spec" value="XQ10+"/>
      <test><![CDATA[
        declare default element namespace
"http://www.w3.org/XQueryTestOrderBy"; 
        /DataValues/(
            for $x in NegativeNumbers/orderData
            order by xs:decimal(.)
            return $x)]]></test>
      <result>
         <any-of>
            <error code="FOTY0004"/>
            <error code="FOTY0012"/>
            <error code="FORG0001"/>
         </any-of>
      </result>
</test-case>

Some implementations may be able to compute the result of this query without
evaluating the order by clause, thereby avoiding the error condition (which is
allowed under 2.3.4 Errors and Optimization).  I would like to modify the query
to force the order by clause to be relevant to the result.  For example:

        declare default element namespace
"http://www.w3.org/XQueryTestOrderBy"; 
        /DataValues/(
            (
            for $x at $pos in NegativeNumbers/orderData
            order by xs:decimal(.) + $pos
            return $x
            )[1]
        )

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 19 September 2014 14:29:10 UTC