This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21263 - missing XSD 1.0 dependency or alternate result for XSD 1.1
Summary: missing XSD 1.0 dependency or alternate result for XSD 1.1
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-13 00:42 UTC by Sorin Nasoi
Modified: 2013-04-09 11:32 UTC (History)
2 users (show)

See Also:


Attachments

Description Sorin Nasoi 2013-03-13 00:42:50 UTC
The test cases:
"K2-SeqExprCast-231" and "K2-SeqExprCast-232" from "prod-CastExpr" are missing XSD 1.0 dependency or alternate result for XSD 1.1:

<test-case name="K2-SeqExprCast-231">
 <description> '+INF' is not a valid value for xs:double.</description>
 <created by="Frans Englich" on="2007-11-26"/>
 <test>xs:double("+INF")</test>
 <result>
  <error code="FORG0001"/>
 </result>
</test-case>

<test-case name="K2-SeqExprCast-232">
 <description> '+INF' is not a valid value for xs:float.</description>
 <created by="Frans Englich" on="2007-11-26"/>
 <test>xs:float("+INF")</test>
 <result>
  <error code="FORG0001"/>
 </result>
</test-case>
Comment 1 O'Neil Delpratt 2013-03-20 13:12:29 UTC
I have applied fixes to the test-cases specified. Specifically created two versions of the test-cases with xsd-version 1.0 and 1.1 dependencies, respectively. I am inclined to believe there might be more test-cases like these which also require the same fixes. I will look into this.
Comment 2 Tim Mills 2013-03-21 10:34:21 UTC
O'Neil - it appears you've missed out the <dependency> tags.  Also, the description doesn't reflect the test. e.g.

t-case name="K2-SeqExprCast-232">
      <description> '+INF' is not a valid value for xs:float.</description>
      <created by="Frans Englich" on="2007-11-26"/>
      <modified by="O'Neil Delpratt" on="2013-03-20" change="Bug fix for #21263 - added the dependency xsd-version 1.0" />
      <test>xs:float("+INF")</test>
      <result>
         <error code="FORG0001"/>
      </result>
   </test-case>


    <test-case name="K2-SeqExprCast-232a">
      <description>Test dervided '+INF' is not a valid value for xs:float.</description>
      <created by="Frans Englich" on="2007-11-26"/>
      <test>xs:float("+INF")</test>
      <result>
        <assert-eq>+INF</assert-eq>
      </result>
    </test-case>
Comment 3 O'Neil Delpratt 2013-03-21 11:13:33 UTC
Thanks Tim. Bug now fixed and committed to cvs.
Comment 4 Michael Kay 2013-04-09 11:32:45 UTC
The fix is incorrect. The value of <assert-eq> must be a valid XPath expression, but +INF is not. Changing to use assert-string-value.