<?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>29572</bug_id>
          
          <creation_ts>2016-04-12 13:43:40 +0000</creation_ts>
          <short_desc>too specific type tests: failing when given xs:integer instead of xs:decimal</short_desc>
          <delta_ts>2016-04-26 20:18:40 +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>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="O&apos;Neil Delpratt">oneil</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>mike</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>125818</commentid>
    <comment_count>0</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2016-04-12 13:43:40 +0000</bug_when>
    <thetext>The bug #23229 has been transferred to the QT3:

These tests

op-numeric-add-1
op-numeric-mod-1
op-numeric-multiply-1
op-numeric-subtract-1
op-numeric-unary-minus-1
op-numeric-unary-plus-1


all require the result of an operation on an integer value of type xs:decimal to have the type xs:decimal.

However (as just discussed on the xquery-talk mailing list) it is legal to cast any integer valued decimal to integer at any time, i.e.  `-xs:decimal(1) instance of xs:integer`  or `xs:decimal(1) instance of xs:integer` might both be true</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126164</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-04-26 19:38:09 +0000</bug_when>
    <thetext>See also bug #29401</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126165</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-04-26 20:18:40 +0000</bug_when>
    <thetext>I have fixed the tests by using &quot;instance of&quot; on each item in the result sequence to check the type.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>