W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2016

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 20 Apr 2016 20:32:01 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29584-523@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:59 UTC