[Bug 3845] Missing tests for last()

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3845

           Summary: Missing tests for last()
           Product: XML Query Test Suite
           Version: 1.0.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


There appear to be no tests (other than error tests) that use last() outside a
predicate (specifically, on the rhs of "/"). The same might also be true of
position() - I haven't checked thoroughly. These expressions are not very
useful but they need to be tested

Examples of such expressions are

//*/last()

//*/position()

//*/(position() = last())

or marginally more usefully

/x/y/subsequence($s, position(), 1)

Received on Tuesday, 17 October 2006 20:25:20 UTC