<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="ab-json-join-008.xml"
        name="ab-json-join-008.xml"
        expected="fail"
        code="err:XC0119">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>JSON join 008(AB)</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2019-12-14</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Changed error code to XC0119</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2019-09-06</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Added tests for p:json-join</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:err="http://www.w3.org/ns/xproc-error">
      <p>Tests p:JSON-join/@flatten-to-depth is handled correctly: Only positive int or 'unbounded' allowed.</p>
   </t:description>
   <t:pipeline xmlns:err="http://www.w3.org/ns/xproc-error">
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
         <p:output port="result"/>
         <p:json-join flatten-to-depth="3.1415">
            <p:with-input>
               <p:inline content-type="application/json">[ "A", 1]</p:inline>
               <p:inline content-type="application/json">"B"</p:inline>
               <p:inline content-type="application/json">[42, ["D", true]]</p:inline>
            </p:with-input>
         </p:json-join>
         <p:cast-content-type content-type="application/xml"/>
      </p:declare-step>
   </t:pipeline>
</t:test>
