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 15691 - [QT3TS] extvardef-011
Summary: [QT3TS] extvardef-011
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: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-24 14:22 UTC by Tim Mills
Modified: 2012-05-18 15:17 UTC (History)
2 users (show)

See Also:


Attachments

Description Tim Mills 2012-01-24 14:22:34 UTC
This test references variable $b, which is not defined.  The test should expect XPST0008.  I'm guessing the test was meant be:

        declare variable $a := $x;
        declare variable $x external := $a + $x;
        $x


   <test-case name="extvardef-011">
     <description>Cycles are forbidden. </description>
      <created by="David Graf" on="2011-12-02"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[
        declare variable $a := $x;
        declare variable $x external := $a + $b;
        $x
      ]]></test>
      <result>
         <error code="XQST0054"/>
      </result>
   </test-case>
Comment 1 Michael Kay 2012-05-17 21:35:02 UTC
The proposed change could cause the test too fai because $x is not in scope within its own initialzer. I shall change it to ($a + 2)
Comment 2 Tim Mills 2012-05-18 15:17:29 UTC
Confirmed fixed.