FOTS fn:matches failing tests

Bug #932374 reported by Sorin Marian Nasoi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Paul J. Lucas

Bug Description

The following tests fail in the FOTS:

'fn-matches-41' test:
fn:matches(concat('Mary', codepoints-to-string(10)), 'Mary$')
should return 'false' according to the FOTS, Zorba returns 'true'

'fn-matches-42' test:
fn:matches(concat('Mary', codepoints-to-string(10)), 'Mary$', 's')
should return 'false' according to the FOTS, Zorba returns 'true'

Assigned the bug to Paul because AFAIK he's the last one who worked on the fn:matches implementation.

Related branches

Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

Which test suite is the FOTS? And where do I get it?

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

The bugs is self contained IMHO: it states the exact tests and their expected results.

If you want the test-set from FOTS it's this:
http://dev.w3.org/cvsweb/2011/QT3-test-suite/fn/matches.xml?rev=1.7;content-type=text%2Fx-cvsweb-markup
the expected result for all above mentioned tests is "assert-false" which means the tests should return fn:false().

There is no official release for FOTS yet, one has to download it directly from W3C CVS.
Soon the Zorba FOTS driver will be merged into Zorba.

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

Test 'fn-matches-45' mentions that
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15594
has more details.

description: updated
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

I'm just trying to understand the rationale as to WHY those tests should return false since &#10 is a newline, hence $ should match.

Changed in zorba:
status: New → In Progress
Changed in zorba:
importance: Undecided → Medium
importance: Medium → High
Changed in zorba:
milestone: none → 2.8
Changed in zorba:
status: In Progress → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.