[Bug 21432] New: Static Typing in cbcl-minus-023

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21432

            Bug ID: 21432
           Summary: Static Typing in cbcl-minus-023
    Classification: Unclassified
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: christian.gruen@gmail.com
        QA Contact: public-qt-comments@w3.org

In this test..

   <test-case name="cbcl-minus-023">
      <description> Test behaviour of minus operator when presented with an
expression with static type duration </description>
      <created by="Oliver Hallam" on="2010-02-26"/>
      <dependency type="spec" value="XQ10+"/>

      <test>declare function local:f($x) { if ($x) then xs:duration("P1D") else
xs:dayTimeDuration("P1H") }; local:f(false()) - xs:time("12:00:00")</test>
      <result>
         <error code="XPTY0004"/>
      </result>
   </test-case>

.."FORG0001" should be added, or the day time duration should be rewritten to
xs:dayTimeDuration("PT1H").

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 29 March 2013 09:40:24 UTC