[Bug 3601] K-ReplaceFunc-6, K-ReplaceFunc-8 and K-ReplaceFunc-9 don't require the replacement pattern to be evaluated

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

           Summary: K-ReplaceFunc-6, K-ReplaceFunc-8 and K-ReplaceFunc-9
                    don't require the replacement pattern to be evaluated
           Product: XML Query Test Suite
           Version: 0.9.4
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: martin@x-hive.com
         QAContact: public-qt-comments@w3.org


K-ReplaceFunc-6, K-ReplaceFunc-8, K-ReplaceFunc-9 expect errors because of
illegal replacement patterns:
> replace("input", "pattern", "thisIsInvalid\ ")

However the implementation does not need to evaluate the replacement pattern to
evaluate the query because the input doesn't match the pattern, so it's free
not to give an error but rather return the empty sequence.

Received on Tuesday, 15 August 2006 15:42:37 UTC