<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" name="SeqSubsequenceFunc" featureOwner="Frans Englich">
   <GroupInfo>
      <title>fn:subsequence</title>
      <description/>
   </GroupInfo>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-001" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string, arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-001" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-001.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-002" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string, arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-002" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-002.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-003" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string, arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-003" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-003.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-004" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string, arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-004" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-004.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-005" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and anyURI, arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-005" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-005.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-006" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string, arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-006" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-006.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-007" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and integer, arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-007" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-007.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-008" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string,decimal and integer, arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-008" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-008.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-009" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and float , arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-009" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-009.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-010" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and float , arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-010" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-010.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-011" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and float , arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-011" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-011.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-012" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and float , arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-012" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-012.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-013" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and double , arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-013" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-013.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-014" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and double , arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-014" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-014.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-015" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and double , arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-015" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-015.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-016" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and double , arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-016" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-016.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-017" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and boolean, arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-017" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-017.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-018" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and boolean, arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-018" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-018.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-019" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and boolean, arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-019" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-019.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-020" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and boolean, arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-020" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-020.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-021" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and date , arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-021" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-021.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-022" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and dateTime, arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-022" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-022.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-023" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg1: sequence of string and time , arg2 and arg3: integer.</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-023" date="2005-05-26"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-023.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-subsequence-mix-args-024" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard" Creator="Michael Kay">
      <description>subsequence(X, -INF, +INF)</description>
      <spec-citation spec="FuncOps" section-number="15.1.10" section-title="fn:subsequence" section-pointer="func-subsequence"/>
      <query name="fn-subsequence-mix-args-024" date="2010-06-18"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-subsequence-mix-args-024.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-1" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="runtime-error">
      <description>A test whose essence is: `subsequence()`.</description>
      <query name="K-SeqSubsequenceFunc-1" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0017</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-2" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="runtime-error">
      <description>A test whose essence is: `subsequence(1)`.</description>
      <query name="K-SeqSubsequenceFunc-2" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0017</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-3" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="runtime-error">
      <description>A test whose essence is: `subsequence(1, 1, 1, 1)`.</description>
      <query name="K-SeqSubsequenceFunc-3" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0017</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-4" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `empty(subsequence((), 2, 3))`.</description>
      <query name="K-SeqSubsequenceFunc-4" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-4.txt</output-file>
      <expected-error>XPST0005</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-5" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `empty(subsequence((1, 2, 3), 2, -10))`.</description>
      <query name="K-SeqSubsequenceFunc-5" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-6" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence((1, 2, 3, "four"), 4)) eq 1`.</description>
      <query name="K-SeqSubsequenceFunc-6" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-6.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-7" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence((1, 2, 3, "four"), 4, 1)) eq 1`.</description>
      <query name="K-SeqSubsequenceFunc-7" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-7.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-8" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `subsequence((1, 2, 3.1, "four"), 4)`.</description>
      <query name="K-SeqSubsequenceFunc-8" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-8.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-9" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `subsequence((1, 2, 3.1, "four"), 4, 1)`.</description>
      <query name="K-SeqSubsequenceFunc-9" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-9.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-10" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `subsequence((1, 2, 3.1, "four"), 3, 1) instance of xs:decimal`.</description>
      <query name="K-SeqSubsequenceFunc-10" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-10.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-11" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `subsequence((1, 2, 3.1, "four"), 1, 1)`.</description>
      <query name="K-SeqSubsequenceFunc-11" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-11.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-12" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `empty(subsequence((1, 2, 3, "four"), 4, -3))`.</description>
      <query name="K-SeqSubsequenceFunc-12" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-12.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-13" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `empty(subsequence((1, 2, 3, "four"), -4, -3))`.</description>
      <query name="K-SeqSubsequenceFunc-13" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-13.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-14" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `subsequence((1, 2, 3), 1, 1) eq 1`.</description>
      <query name="K-SeqSubsequenceFunc-14" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-14.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-15" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `subsequence((1, 2, 3), 1, 1) eq 1`.</description>
      <query name="K-SeqSubsequenceFunc-15" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-15.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-16" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `subsequence((1, 2, 3), 3) eq 3`.</description>
      <query name="K-SeqSubsequenceFunc-16" static-name="K-SeqSubsequenceFunc-16-static-cbcl" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-16.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-17" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence((1, 2, 3), 1, 1)) eq 1`.</description>
      <query name="K-SeqSubsequenceFunc-17" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-17.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-18" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence((1, 2, 3), 1, 3)) eq 3`.</description>
      <query name="K-SeqSubsequenceFunc-18" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-18.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-19" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence((1, 2, 3, "four"), 4)) eq 1`.</description>
      <query name="K-SeqSubsequenceFunc-19" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-19.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-20" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence(1 to 3, 1, 1)) eq 1`.</description>
      <query name="K-SeqSubsequenceFunc-20" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-20.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-21" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `empty(subsequence((1, 2), 4))`.</description>
      <query name="K-SeqSubsequenceFunc-21" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-21.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-22" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `subsequence((5, 6, 7, 8), 2, 1) eq 6`.</description>
      <query name="K-SeqSubsequenceFunc-22" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-22.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-23" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence((1, 2), 2)) eq 1`.</description>
      <query name="K-SeqSubsequenceFunc-23" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-23.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-24" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence((1, 2, 3, "four"), 2)) eq 3`.</description>
      <query name="K-SeqSubsequenceFunc-24" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-24.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-25" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence((1, 2, 3, "four"), 2, 2)) eq 2`.</description>
      <query name="K-SeqSubsequenceFunc-25" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-25.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-26" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `subsequence((1, 2, 3.1, "four"), 1, 1)`.</description>
      <query name="K-SeqSubsequenceFunc-26" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-26.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-27" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="runtime-error">
      <description>A test whose essence is: `1 eq "a string"`.</description>
      <query name="K-SeqSubsequenceFunc-27" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-28" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="runtime-error">
      <description>A test whose essence is: `1 eq subsequence(("1", 2, 3.1, "four"), 1, 1)`.</description>
      <query name="K-SeqSubsequenceFunc-28" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-29" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="runtime-error">
      <description>A test whose essence is: `subsequence(("1", 2, 3.1, "four"), 1, 1) eq 1`.</description>
      <query name="K-SeqSubsequenceFunc-29" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-30" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="runtime-error">
      <description>A test whose essence is: `subsequence(error(), 1, 1)`.</description>
      <query name="K-SeqSubsequenceFunc-30" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOER0000</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-31" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence((1, 2, 2, current-time()), 2, 2)) eq 2`.</description>
      <query name="K-SeqSubsequenceFunc-31" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-31.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-32" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence(remove(current-time(), 1), 1, 1)) eq 0`.</description>
      <query name="K-SeqSubsequenceFunc-32" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-32.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-33" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `deep-equal(1, subsequence((1, 2, current-time()), 1, 1))`.</description>
      <query name="K-SeqSubsequenceFunc-33" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-33.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-34" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>Using subsequence inside a predicate.</description>
      <query name="K-SeqSubsequenceFunc-34" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-34.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-35" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `empty(subsequence((current-time(), 1), 4))`.</description>
      <query name="K-SeqSubsequenceFunc-35" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-35.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-36" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence((current-time(), 1), 4)) eq 0`.</description>
      <query name="K-SeqSubsequenceFunc-36" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-36.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-37" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence((current-time(), 2 , 3), 1)) eq 3`.</description>
      <query name="K-SeqSubsequenceFunc-37" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-37.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-38" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence((current-time(), 2 , 3), 3)) eq 1`.</description>
      <query name="K-SeqSubsequenceFunc-38" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-38.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-39" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A test whose essence is: `count(subsequence((current-time(), 2 , 3, 4), 2, 2)) eq 2`.</description>
      <query name="K-SeqSubsequenceFunc-39" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-39.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-40" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>Apply a predicate to the result of fn:subsequence().</description>
      <query name="K-SeqSubsequenceFunc-40" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-40.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-41" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>Apply a predicate to the result of fn:subsequence().</description>
      <query name="K-SeqSubsequenceFunc-41" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-41.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-42" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>Apply a predicate to the result of fn:subsequence().</description>
      <query name="K-SeqSubsequenceFunc-42" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-42.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-43" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>Apply a predicate to the result of fn:subsequence().</description>
      <query name="K-SeqSubsequenceFunc-43" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-43.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqSubsequenceFunc-44" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>Apply a predicate to the result of fn:subsequence().</description>
      <query name="K-SeqSubsequenceFunc-44" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqSubsequenceFunc-44.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-SeqSubsequenceFunc-1" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>Use fn:subsequence where the input is via variable references.</description>
      <query name="K2-SeqSubsequenceFunc-1" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqSubsequenceFunc-1.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-SeqSubsequenceFunc-2" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A zero length.</description>
      <query name="K2-SeqSubsequenceFunc-2" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Fragment">K2-SeqSubsequenceFunc-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-SeqSubsequenceFunc-3" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>A negative length.</description>
      <query name="K2-SeqSubsequenceFunc-3" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Fragment">K2-SeqSubsequenceFunc-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqSubsequenceFunc-4" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>Ensure rounding is done properly, 1.1.</description>
      <query name="K2-SeqSubsequenceFunc-4" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqSubsequenceFunc-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqSubsequenceFunc-5" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>Ensure rounding is done properly, 1.8.</description>
      <query name="K2-SeqSubsequenceFunc-5" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqSubsequenceFunc-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqSubsequenceFunc-6" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>Ensure rounding is done properly, 1.4.</description>
      <query name="K2-SeqSubsequenceFunc-6" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqSubsequenceFunc-6.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqSubsequenceFunc-7" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>Ensure rounding is done properly, 1.5.</description>
      <query name="K2-SeqSubsequenceFunc-7" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqSubsequenceFunc-7.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-SeqSubsequenceFunc-8" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>Have subsequence inside a function body, to trap bugs related to inference, rewrites and function call sites.</description>
      <query name="K2-SeqSubsequenceFunc-8" date="2008-05-08+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqSubsequenceFunc-8.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-SeqSubsequenceFunc-9" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="standard">
      <description>Have subsequence inside a function body, to trap bugs related to inference, rewrites and function call sites(#2).</description>
      <query name="K2-SeqSubsequenceFunc-9" date="2008-05-08+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqSubsequenceFunc-9.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqSubsequenceFunc-10" FilePath="Functions/SeqFunc/GeneralSeqFunc/SeqSubsequenceFunc/" scenario="runtime-error">
      <description>Have a call to subsequence that triggers a type error in an expression which can be const folded(derived from functionbc20_037).</description>
      <query name="K2-SeqSubsequenceFunc-10" date="2008-11-13+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
</test-group>