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

[Bug 29922] New: [qt3ts] fn-transform-45

From: <bugzilla@jessica.w3.org>
Date: Fri, 07 Oct 2016 10:50:52 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29922-523@http.www.w3.org/Bugs/Public/>

            Bug ID: 29922
           Summary: [qt3ts] fn-transform-45
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

The test in its current form contains two mutually-contradictory assertions:

<assert>not(map:contains($result, "output"))</assert>
<assert>$result("output") instance of xs:string</assert>

In addition, the assertion 

contains(map:keys($result), 'fn-transform-45.xml')

is highly dubious because contains() expects a single string and map:keys()
delivers a sequence of atomic values.

The result map actually contains a single entry whose key is something like


which will vary from machine to machine. The previous version of the test used
$result?* to access the entry regardless of its key, but this was changed to
avoid use of XPath 3.1 syntax. I think we can achieve the same effect, given
that it is a singleton map, using $result(map:keys($result)[1])

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 7 October 2016 10:51:01 UTC

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