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

[Bug 29767] New: [QT3TS] fn-replace-55

From: <bugzilla@jessica.w3.org>
Date: Mon, 08 Aug 2016 08:09:03 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29767-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29767

            Bug ID: 29767
           Summary: [QT3TS] fn-replace-55
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: tim@cbcl.co.uk
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

I disagree with the expected result.

$1 refers to the string captured by (a).

In this case (a) will match 'a', (b) with match 'b' etc.
When matching (a), the captured string $1 will be 'a', ptherwise, it will be
the empty string.

Therefore I expected 

       <assert-string-value>ak</assert-string-value>

to hold.


   <test-case name="fn-replace-55">
      <description>Test case with undefined captures. Saxon bug
2865.</description>
      <created by="Michael Kay after Gunther Rademacher" on="2016-07-31"/>
      <test>replace('abcdefghijk', '(a)|(b)|(c)|(d)|(e)|(f)|(g)|(h)|(i)|(j)',
'$1')
      </test>
      <result>
         <assert-string-value>abcdefghijk</assert-string-value>
      </result>
   </test-case>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 8 August 2016 08:11:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:58:01 UTC