<?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>29547</bug_id>
          
          <creation_ts>2016-03-30 18:16:44 +0000</creation_ts>
          <short_desc>Castable tests assume no year zero</short_desc>
          <delta_ts>2016-10-24 21:09:14 +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>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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="Michael Kay">mike</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>andrew_coleman</cc>
    
    <cc>benito</cc>
          
          <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>125672</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-03-30 18:16:44 +0000</bug_when>
    <thetext>In prod-CastableExpr, tests

cbcl-castable-gYear-002 
cbcl-castable-gYear-003 
cbcl-castable-gYearMonth-003 
cbcl-castable-gYearMonth-004

assume year zero is not allowed. This is true of XSD 1.0 but not of XSD 1.1 But the tests have no dependency on XSD version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125908</commentid>
    <comment_count>1</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2016-04-19 10:03:48 +0000</bug_when>
    <thetext>I am suggesting that we split these tests into two: One for XSD 1.0 and the other for XSD 1.1. I will make the change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125910</commentid>
    <comment_count>2</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2016-04-19 10:14:05 +0000</bug_when>
    <thetext>See also the bug #29576 which suggests a minimum and maximum year that all implementations must support.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126404</commentid>
    <comment_count>3</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2016-05-10 15:13:51 +0000</bug_when>
    <thetext>Bug fixed according to the resolution: make these tests (a) dependent on support for XSD 1.1, and (b) allow an FODT0001 result for implementations whose minimum year is 0001.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126455</commentid>
    <comment_count>4</comment_count>
    <who name="Benito van der Zander">benito</who>
    <bug_when>2016-05-17 21:06:12 +0000</bug_when>
    <thetext>That would affect these tests, too: ?

cbcl-cast-gYear-002: &quot;0000&quot; cast as xs:gYear
cbcl-cast-gYearMonth-003:  &quot;0000-05&quot; cast as xs:gYearMonth</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126456</commentid>
    <comment_count>5</comment_count>
    <who name="Benito van der Zander">benito</who>
    <bug_when>2016-05-17 21:12:10 +0000</bug_when>
    <thetext>And

cbcl-cast-gYear-003: &quot;-0000&quot; cast as xs:gYear
cbcl-cast-gYearMonth-004: &quot;-0000-05&quot; cast as xs:gYearMonth


?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127425</commentid>
    <comment_count>6</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2016-09-20 09:41:32 +0000</bug_when>
    <thetext>(In reply to Benito van der Zander from comment #5)
&gt; And
&gt; 
&gt; cbcl-cast-gYear-003: &quot;-0000&quot; cast as xs:gYear
&gt; cbcl-cast-gYearMonth-004: &quot;-0000-05&quot; cast as xs:gYearMonth
&gt; 
&gt; 
&gt; ?

I have committed a fix for these test cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127660</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-10-05 12:04:01 +0000</bug_when>
    <thetext>I don&apos;t understand the change that was made to these tests:

&gt; cbcl-cast-gYear-003: &quot;-0000&quot; cast as xs:gYear
&gt; cbcl-cast-gYearMonth-004: &quot;-0000-05&quot; cast as xs:gYearMonth

Previously the tests had no XSD dependency, and were expected to fail FORG0001, which I think was correct: year zero is not valid under XSD 1.0.

Now the tests have been changed to have a dependency on XSD 1.1. I think this makes the cast succeed. But the expected results have been changed to allow a choice of errors: FORG0001 or FODT0001.

I think there should be two versions of each of these two tests:

(a) an XSD 1.0 version which expects FORG0001

(b) an XSD 1.1 version which expects either success, or FODT0001.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127894</commentid>
    <comment_count>8</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2016-10-21 07:22:01 +0000</bug_when>
    <thetext>The WG agreed the following resolution:

ACTION A-657-19: O&apos;Neil to look at tests cbcl-cast-gYear-003 and cbcl-cast-gYearMonth-004 and to fix as proposed by MKay in comment #7 of bug 29547 (drop errors as allowed result)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127944</commentid>
    <comment_count>9</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2016-10-24 16:08:14 +0000</bug_when>
    <thetext>Bug fixed accordingly to comment 7 and 8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127946</commentid>
    <comment_count>10</comment_count>
    <who name="Benito van der Zander">benito</who>
    <bug_when>2016-10-24 21:09:14 +0000</bug_when>
    <thetext>Now there are still cbcl-cast-gYear-002, cbcl-cast-gYearMonth-003 and cbcl-cast-gYearMonth-004 running with xsd 1.1 and only accepting FORG0001/FODT0001</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>