<?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>23229</bug_id>
          
          <creation_ts>2013-09-12 23:06:27 +0000</creation_ts>
          <short_desc>too specific type tests: failing when given xs:integer instead of xs:decimal</short_desc>
          <delta_ts>2016-04-12 13:45:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Benito van der Zander">benito</reporter>
          <assigned_to name="Benjamin Nguyen">benjie.nguyen</assigned_to>
          <cc>mike</cc>
    
    <cc>oneil</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>93322</commentid>
    <comment_count>0</comment_count>
    <who name="Benito van der Zander">benito</who>
    <bug_when>2013-09-12 23:06:27 +0000</bug_when>
    <thetext>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>94657</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-10-14 14:47:22 +0000</bug_when>
    <thetext>Personal response/assessment: I agree with the comment. The tests should be reorganized so that an xs:integer result is permitted where an xs:decimal result is expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120041</commentid>
    <comment_count>2</comment_count>
    <who name="Benito van der Zander">benito</who>
    <bug_when>2015-05-01 20:25:24 +0000</bug_when>
    <thetext>These tests also exist in the new XQTS and have the same issues there</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125820</commentid>
    <comment_count>3</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2016-04-12 13:45:13 +0000</bug_when>
    <thetext>This bug has been transferred to QT3 test suite: See bug #29572</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>