<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" name="DatesSubtract" featureOwner="Frans Englich">
   <GroupInfo>
      <title>op:subtract-dates-yielding-dayTimeDuration</title>
      <description/>
   </GroupInfo>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-1" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator as per example 1 (for this function) of the Functions and Operators spec.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-1" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-2" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator as per example 2 (for this function) of the Functions and Operators spec.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-2" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-3" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator as per example 3 (for this function) of the Functions and Operators spec.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-3" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-4" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator used in conjunction with the "fn:not" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-4" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-5" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator as an argument to the "fn:boolean" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-5" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-6" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator as an argument to the "fn:number" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-6" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-6.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-7" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator as an argument to the "fn:string" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-7" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-7.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-8" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator that returns a negative value.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-8" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-8.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-9" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator, which is part of an "and" expression.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-9" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-9.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-10" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator as part of an "or" expression.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-10" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-10.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-11" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator as part of a "div" expression.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-11" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-11.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-12" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator used in conjunction with a boolean expression and the "fn:true" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-12" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-12.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-13" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator, which is part of a numeric-equal expression (eq operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-13" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-13.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-14" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator, which is part of a numeric-equal expression (ne operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-14" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-14.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-15" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator, which is part of a numeric-equal expression (le operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-15" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-15.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-16" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator, which is part of a numeric-equal expression (ge operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-16" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-16.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-17" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator as part of a boolean expression (and operator) and the "fn:false" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-17" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-17.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-18" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator as part of a boolean expression (or operator) and the "fn:false" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-18" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-18.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-19" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator as part of a multiplication expression ("*" operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-19" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-19.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dates-yielding-DTD-20" FilePath="Expressions/Operators/ArithExpr/DurationArith/DatesSubtract/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dates-yielding-dayTimeDuration" operator as part of an addition expression ("+" operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.2" section-title="op:subtract-dates" section-pointer="func-subtract-dates"/>
      <query name="op-subtract-dates-yielding-DTD-20" date="2005-07-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dates-yielding-DTD-20.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-DatesSubtract-1" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/DatesSubtract/" scenario="standard">
      <description>Simple testing involving operator '-' between xs:date and xs:date.</description>
      <query name="K-DatesSubtract-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-DatesSubtract-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-DatesSubtract-2" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/DatesSubtract/" scenario="standard">
      <description>Simple testing involving operator '-' between xs:date and xs:date that evaluates to zero.</description>
      <query name="K-DatesSubtract-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-DatesSubtract-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-DatesSubtract-3" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/DatesSubtract/" scenario="runtime-error">
      <description>The '+' operator is not available between xs:date and xs:date.</description>
      <query name="K-DatesSubtract-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-DatesSubtract-4" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/DatesSubtract/" scenario="runtime-error">
      <description>The 'div' operator is not available between xs:date and xs:date.</description>
      <query name="K-DatesSubtract-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-case is-XPath2="true" Creator="Frans Englich" name="K-DatesSubtract-5" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/DatesSubtract/" scenario="runtime-error">
      <description>The '*' operator is not available between xs:date and xs:date.</description>
      <query name="K-DatesSubtract-5" 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-DatesSubtract-6" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/DatesSubtract/" scenario="runtime-error">
      <description>The 'mod' operator is not available between xs:date and xs:date.</description>
      <query name="K-DatesSubtract-6" 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>