[Bug 29584] New: [QT3] () castable to list

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

            Bug ID: 29584
           Summary: [QT3] () castable to list
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

I believe the result of the following test case should be false, not true:

   <test-case name="Castable-ListType-9" covers-30="cast-to-list">
       <description>Test castability of empty sequence to list
type.</description>
       <created by="Tim Mills" on="2016-04-11"/>
       <environment ref="union-List-defined-Types"/>
       <dependency type="spec" value="XQ30+"/>
       <dependency type="feature" value="schemaImport"/>
       <test><![CDATA[
       import schema namespace
s="http://www.w3.org/XQueryTest/unionListDefined";
        () castable as s:intListType1]]>
       </test>
       <result><assert-true /></result>
   </test-case>

The spec for castable to list says that the input must be a (single) string or
untypedAtomic; it also says that an empty sequence is OK provided the type is
written as T?.

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

Received on Wednesday, 20 April 2016 20:32:03 UTC