[Bug 29253] New: [XQ3TS] fn-matches-50

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29253

            Bug ID: 29253
           Summary: [XQ3TS] fn-matches-50
           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'd like to query the tests

   <test id="p303" regex="^((.)?a\2)+$" input="babadad" result="n"/>

and

   <test id="p908" regex="(\w)?(abc)\1b" input="abcab" result="y"/><!-- Changed
MHK. Was "n" -->


In the former, 

^((.)?a\2)+$" 

1st iteration: \2 = 'b', \1 = 'bab'
2nd iteration: \2 = '',  \1 = 'a'
3rd iteration: \2 = 'd', \1 = 'dad'

thus the whole string is matched.

In the latter

If (\w)? matches 'a', then we're trying to match 'a(abc)ab' against 'abcab'
If (\w)? doesn't match 'a', then we're trying to match '(abc)b' against
'abcab'.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 30 October 2015 17:18:48 UTC