<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22282</bug_id>
          
          <creation_ts>2013-06-05 09:28:13 +0000</creation_ts>
          <short_desc>wrong expected result or picture string for &apos;format-dateTime-006&apos;</short_desc>
          <delta_ts>2013-06-12 16:45:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sorin Nasoi">spungi</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88712</commentid>
    <comment_count>0</comment_count>
    <who name="Sorin Nasoi">spungi</who>
    <bug_when>2013-06-05 09:28:13 +0000</bug_when>
    <thetext>In the test-case &apos;format-dateTime-006&apos; from &apos;fn-format-dateTime&apos;
the picture string is [Yi,4-4]
yet the expected result assumes the picture string is [Yi,3-3].

Either the expected result or picture string need to be corrected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89173</commentid>
    <comment_count>1</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-06-12 16:45:49 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; In the test-case &apos;format-dateTime-006&apos; from &apos;fn-format-dateTime&apos;
&gt; the picture string is [Yi,4-4]
&gt; yet the expected result assumes the picture string is [Yi,3-3].
&gt; 
&gt; Either the expected result or picture string need to be corrected.

Yes I agree. I have fixed the test to use the picture string [Yi, 3-3] and changed the description accordingly, which was not quite accurate.

Before:
Test format-dateTime: lower-case roman numerals for year (width specifier ignored)

After:

Test format-dateTime: lower-case roman numerals for year (with the width specifier padded) 

I have also created another test-case which is a variant of ormat-dateTime-006. Here we are testing the picture string [Yi, 4-4]. In this new test I have removed the normalize-space=&quot;true&quot; in the assertion &apos;assert-string-value&apos;, which provides a better test of padding.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>