[Bug 26825] New: parse-ietf-date-6

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[Bug 26825] New: parse-ietf-date-6

Bugzilla from bugzilla@jessica.w3.org

            Bug ID: 26825
           Summary: parse-ietf-date-6
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

This test reads:

<test-case name="parse-ietf-date-6">
      <description>long fractional seconds</description>
      <created by="Liam R E Quin" on="2014-08-22"/>
      <!--* XSD implementations must support milliseconds in dateTime objects.
          * We don't specify whether parse-ietf-date() must do the same, but
      * since it returns a dateTime object that seems a resonable
      * interpretation.  Greater precisions is permitted. Hwere all we care
      * about is that it's not an error and that the rounding is the same
      * in both cases.
         <param name="d" as="xs:dateTime"
      <test>if (parse-ietf-date("Wed, 20 Aug 2014
19:36:01.2999999999999999999999999999999 GMT") = $d)
      then "pass"
      else "fail"</test>

Implementations are only required to support three digits of fractional
seconds, and the effect when you supply more than this isn't well defined in
the spec. At the very least, we shouldn't do it without a dependency.

Furthermore, things that are processor-dependent should never be defined except
in the query-under-test, because it's assumed that all the metadata can be
processed in order to determine the test dependencies. So as a first step in
fixing this I'm going to move the questionable cast operation into the query.

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