W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2012

[Bug 16059] New: [QT3] CastAs673, K-SeqExprCast-71

From: <bugzilla@jessica.w3.org>
Date: Tue, 21 Feb 2012 13:26:41 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-16059-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16059

           Summary: [QT3] CastAs673, K-SeqExprCast-71
           Product: XPath / XQuery / XSLT
           Version: Member-only Editors Drafts
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
        AssignedTo: benjie.nguyen@gmail.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


The tests CastAs673 and K-SeqExprCast-71 cover casting to namespace-sensitive
types.  They currently use any-of assertions to handle differences between
XQuery 1.0 and XQuery 3.0.

I suggest splitting them as follows.

   <test-case name="CastAs673a">
      <description> Try to cast a variable to xs:QName</description>
      <created by="Nicolae Brinza" on="2009-04-01"/>
      <dependency type="spec" value="XQ10"/>
      <test>let $var := "ABC" return $var cast as xs:QName</test>
      <result>
            <error code="XPTY0004"/>
      </result>
   </test-case>

   <test-case name="CastAs673b">
      <description> Try to cast a variable to xs:QName</description>
      <created by="Nicolae Brinza" on="2009-04-01"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>let $var := "ABC" return $var cast as xs:QName</test>
      <result>
            <assert-string-value>ABC</assert-string-value>
      </result>
   </test-case>


   <test-case name="K-SeqExprCast-71a">
      <description> Casting xs:untypedAtomic to xs:QName is an
error.</description>
      <created by="Frans Englich" on="2007-11-26"/>
      <dependency type="spec" value="XP20 XQ10"/>
      <test>xs:untypedAtomic("ncname") cast as xs:QName?</test>
      <result>
            <error code="XPTY0004"/>
      </result>
   </test-case>

   <test-case name="K-SeqExprCast-71b">
      <description> Casting xs:untypedAtomic to xs:QName is no longer an
error.</description>
      <created by="Frans Englich" on="2007-11-26"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>xs:untypedAtomic("ncname") cast as xs:QName?</test>
      <result>
            <assert-string-value>ncname</assert-string-value>
      </result>
   </test-case>

(I'm happy to make the change if someone else agrees).

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 21 February 2012 13:26:45 UTC

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