<?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>2936</bug_id>
          
          <creation_ts>2006-02-24 22:28:34 +0000</creation_ts>
          <short_desc>negative zero xs:float in expected results?</short_desc>
          <delta_ts>2006-05-17 22:12:47 +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>0.8.6</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</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="Marc Van Cappellen">marc.van.cappellen</reporter>
          <assigned_to name="Carmelo Montanez">carmelo</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8446</commentid>
    <comment_count>0</comment_count>
    <who name="Marc Van Cappellen">marc.van.cappellen</who>
    <bug_when>2006-02-24 22:28:34 +0000</bug_when>
    <thetext>In http://www.w3.org/TR/xquery-operators/#constructor-functions-for-xsd-types 
we read:

xs:float($arg as xdt:anyAtomicType?) as xs:float?
Implementations ·may· return negative zero for xs:float(&quot;-0.0E0&quot;). [XML Schema 
Part 2: Datatypes Second Edition] does not distinguish between the values 
positive zero and negative zero.

The following tests:
  orderBy25.xq
  orderBy27.xq
  orderBy57.xq
The expected result contains &quot;0&quot;, shouldn&apos;t there be a second expected result 
specifying -0?

FYI, we&apos;re running XQTS using an implementation based on the Infoset mapping. 
As such in the above mentioned tests we&apos;re constructing xs:float values 
starting from xdt:untypedAtomic values.

Thanks,
Marc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8481</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-02-28 14:42:56 +0000</bug_when>
    <thetext>Yes, there should be a second expected result for Infoset-based implementations
that begins with:

&lt;results xmlns=&quot;http://www.w3.org/XQueryTestOrderBy&quot;&gt;-0 ...

Actually, we should have one result for PSVI-based implementations that starts
with 0, one for Infoset-based implementations that begins with -0, and one for
Infoset-based implementations that begins with 0.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8588</commentid>
    <comment_count>2</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-03-06 19:50:30 +0000</bug_when>
    <thetext>Mark:

Added second possible output for offending tests.  Please close the bug when 
able to verify and if in agreement.

Thanks,
Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9839</commentid>
    <comment_count>3</comment_count>
    <who name="Marc Van Cappellen">marc.van.cappellen</who>
    <bug_when>2006-05-17 22:12:47 +0000</bug_when>
    <thetext>verified and looks ok</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>