This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16059 - [QT3TS] CastAs673, K-SeqExprCast-71
Summary: [QT3TS] CastAs673, K-SeqExprCast-71
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Member-only Editors Drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Tim Mills
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-21 13:26 UTC by Tim Mills
Modified: 2012-05-31 09:14 UTC (History)
2 users (show)

See Also:


Attachments

Description Tim Mills 2012-02-21 13:26:41 UTC
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).
Comment 1 O'Neil Delpratt 2012-05-23 13:40:56 UTC
I agree the changes should be made.
Comment 2 Tim Mills 2012-05-31 09:14:46 UTC
Fixed in CVS.