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