Bug 19282 - [QT3TS] try-catch-fn-error-6
Summary: [QT3TS] try-catch-fn-error-6
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-05 08:25 UTC by Tim Mills
Modified: 2012-10-05 14:31 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Mills 2012-10-05 08:25:38 UTC
This test assumes that "example" is an in-scope namespace in the assert-eq.

  <test-case name="try-catch-fn-error-6" covers="fn-error">
    <description>Try-catch must match fn:error semantics.</description>
    <created by="Ghislain Fourny" on="2012-10-03"/>
    <environment ref="err"/>
    
    <test>try { fn:error(fn:QName("http://www.example.com/", "example:EXER3141"), "Description") } catch Q{http://www.example.com/}EXER3141 { $err:code }</test>
    <result>
      <assert-eq>example:EXER3141</assert-eq>
    </result>
  </test-case>
Comment 1 Michael Kay 2012-10-05 09:57:42 UTC
I have fixed this, and have also fixed other tests in this series that use

<assert-eq>xyz</assert-eq>

which should be

<assert-eq>'xyz'</assert-eq>
Comment 2 Tim Mills 2012-10-05 14:31:17 UTC
Thanks.