Tests cx:find with a grep query that won’t find any files.
Test find-005.xml is expected to fail with error code cxerr:XC0040.
<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions" xmlns:cxerr="http://xmlcalabash.com/ns/error" 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" grep="\Uisn't a thing"/>
</p:declare-step>
Fixed title.
Created test.