<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/find-007.xml"
        name="find-007.xml"
        expected="fail"
        code="cxerr:XC0039">
   <t:info xmlns:cxerr="http://xmlcalabash.com/ns/error">
      <t:title>find-007</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2025-05-11</t:date>
            <t:author>
               <t:name>Norm Tovey-Walsh</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Created test.</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:cxerr="http://xmlcalabash.com/ns/error">
      <p>Tests an invalid JSONPath.</p>
   </t:description>
   <t:pipeline xmlns:cxerr="http://xmlcalabash.com/ns/error">
      <p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions"
                      xmlns:p="http://www.w3.org/ns/xproc"
                      name="main"
                      version="3.0"
                      expand-text="false">
         <p:import href="https://xmlcalabash.com/ext/library/find.xpl"/>
         <p:output port="result"/>
         <cx:find path="../documents/find" jsonpath="$.store...invalid"/>
      </p:declare-step>
   </t:pipeline>
</t:test>
