[Bug 29789] New: format-time-023u incorrect result

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

            Bug ID: 29789
           Summary: format-time-023u incorrect result
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: josh.spiegel@oracle.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

<test-case name="format-time-023u" covers="format-ms"
xmlns="http://www.w3.org/2010/09/qt-fots-catalog">
      <description>test format-time(): effect of width specifiers
</description>
      <created by="Debbie Lockett, Saxonica" on="2016-03-24"/>
      <modified by="Michael Kay, Saxonica" on="2016-07-26" change="bug 29749
changes from rounding to truncation"/>
      <environment>
         <param name="t" as="xs:time"
select="xs:time(&apos;09:15:06.006&apos;)"/>
      </environment>
      <dependency type="spec" value="XP31+ XQ31+"/>
      <test><![CDATA[format-time($t, '[f,*-2]')]]></test>
      <result>
         <assert-string-value>0</assert-string-value>
      </result>
</test-case>

FNO, 9.8.4.5, (g):

"If the result contains more digits than the number of mandatory-digit-signs
and optional-digit-signs in the decimal digit pattern, then excess digits are
removed from the right hand end, and the digits that remain are adjusted if
necessary according to the rules of the fn:round-half-to-even function. Any
grouping separator that immediately precedes a removed digit is also removed."

Given this text, I would expect this test to return 00 instead of 0. (assuming
truncation instead of rounding).  I suppose it may be taken care of depending
on how 29749 is applied - raising the bug to track the issue.

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

Received on Tuesday, 23 August 2016 17:45:05 UTC