K2-NamespaceURIForPrefixFunc-2 test fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Medium
|
Sorin Marian Nasoi |
Bug Description
this is the ctest output:
test w3c_testsuite/
=== Query: ===
(:*****
(: Test: K2-NamespaceURI
(: Written by: Frans Englich :)
(: Date: 2007-11-
(: Purpose: Test that the correct default namespace is picked up(#2). :)
(:*****
namespace-
<b xmlns:B="http://
</e>/b)) eq ""
=== end of Query ===
=== Result: ===
true
=== end of result ===
testdriver: non-canonical result for reference result # 1 doesn't match.
Actual and Reference canonical results are not identical
Actual Canonical Result:
<root>true</root>
Reference Canonical Result:
<root></root>
See line 1, col 6 of expected result.
Actual: <<root>true</root>>
Expected: <<root></root>>
testdriver: canonical result for reference result # 1 doesn't match.
testdriver: none of the reference results matched
Related branches
- Matthias Brantner: Approve
- Markos Zaharioudakis: Approve
-
Diff: 278 lines (+50/-55)3 files modifiedsrc/runtime/qnames/qnames_impl.cpp (+41/-48)
test/rbkt/Queries/CMakeLists.txt (+8/-7)
test/rbkt/Queries/w3c_known_failures.txt (+1/-0)
Changed in zorba: | |
assignee: | nobody → Sorin Marian Nasoi (sorin.marian.nasoi) |
Changed in zorba: | |
milestone: | none → 2.1 |
importance: | Undecided → Medium |
Changed in zorba: | |
status: | New → In Progress |
Changed in zorba: | |
milestone: | 2.1 → none |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
In XQTS_1_0_3 the expected result for this test is 'true'. www.w3. org/TR/ xpath-functions -30/#func- namespace- uri-for- prefix www.w3. org/Bugs/ Public/ show_bug. cgi?id= 11590
According to the:
- W3C F&O Spec: http://
- decisions taken in bug 11590: http://
The correct result in this case is the empty sequence: because () eq "" returns ()
Because of the fact that at this moment the RQ uses XQTS_1_0_3, the test test/rbkt/ w3c_testsuite/ XQuery/ Functions/ QNameFunc/ NamespaceURIFor PrefixFunc/ K2-NamespaceURI ForPrefixFunc- 2 Queries/ CMakeLists. txt. Queries/ w3c_known_ failures. txt in order for the change to go through the RQ.
is marked as an expected failure in
test/tbkt/
Also the test was manually added in the test/tbkt/
The proposed changes for this bug can be found on this public branch: lp:~zorba-coders/zorba/bug_872732