<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" name="DateAddYMD" featureOwner="Frans Englich">
   <GroupInfo>
      <title>op:add-yearMonthDuration-to-date</title>
      <description/>
   </GroupInfo>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date2args-1" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator with the arguments set as follows: $arg1 = xs:date(lower bound) $arg2 = xs:yearMonthDuration(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date2args-2" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator with the arguments set as follows: $arg1 = xs:date(mid range) $arg2 = xs:yearMonthDuration(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date2args-3" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator with the arguments set as follows: $arg1 = xs:date(upper bound) $arg2 = xs:yearMonthDuration(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date2args-4" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator with the arguments set as follows: $arg1 = xs:date(lower bound) $arg2 = xs:yearMonthDuration(mid range).</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date2args-5" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator with the arguments set as follows: $arg1 = xs:date(lower bound) $arg2 = xs:yearMonthDuration(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-1" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator as per example 1 (for this function) of the Functions and Operators spec.</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-1" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-2" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator as part of a boolean expression (and operator) and the "fn:false" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-2" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-3" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator as part of a boolean expression (or operator) and the "fn:false" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-3" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-4" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator used in conjunction with the "fn:not" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-4" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-5" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator as an argument to the "fn:boolean" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-5" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-6" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator as an argument to the "fn:number" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-6" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-6.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-7" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator as an argument to the "fn:string" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-7" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-7.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-8" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator that returns a negative value.</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-8" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-8.txt</output-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-datealt-8.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-9" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator, which is part of an "and" expression.</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-9" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-9.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-10" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator as part of an "or" expression.</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-10" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-10.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-12" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator used in conjunction with a boolean expression and the "fn:true" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-12" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-12.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-13" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator, which is part of a numeric-equal expression (eq operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-13" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-13.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-14" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator, which is part of a numeric-equal expression (ne operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-14" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-14.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-15" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator, which is part of a numeric-equal expression (le operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-15" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-15.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-add-yearMonthDuration-to-date-16" FilePath="Expressions/Operators/ArithExpr/DurationArith/DateAddYMD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:add-yearMonthDuration-to-date" operator, which is part of a numeric-equal expression (ge operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.8" section-title="op:add-yearMonthDuration-to-date" section-pointer="func-add-yearMonthDuration-to-date"/>
      <query name="op-add-yearMonthDuration-to-date-16" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-add-yearMonthDuration-to-date-16.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-DateAddYMD-1" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/DateAddYMD/" scenario="standard">
      <description>Simple testing involving operator '+' between xs:date and xs:yearMonthDuration.</description>
      <query name="K-DateAddYMD-1" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-DateAddYMD-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-DateAddYMD-2" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/DateAddYMD/" scenario="standard">
      <description>Simple testing involving operator '+' between xs:yearMonthDuration and xs:date.</description>
      <query name="K-DateAddYMD-2" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-DateAddYMD-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-DateAddYMD-3" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/DateAddYMD/" scenario="runtime-error">
      <description>The '-' operator is not available between xs:yearMonthDuration and xs:date.</description>
      <query name="K-DateAddYMD-3" 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-DateAddYMD-4" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/DateAddYMD/" scenario="runtime-error">
      <description>The '-' operator is not available between xs:yearMonthDuration and xs:dateTime.</description>
      <query name="K-DateAddYMD-4" 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-group>