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 2592 - equality on NaN in distinct-values tests
Summary: equality on NaN in distinct-values tests
Status: CLOSED WORKSFORME
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.2
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Ravindranath (Ravi) Chennoju
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-13 20:50 UTC by Jerome Simeon
Modified: 2006-02-08 04:51 UTC (History)
0 users

See Also:


Attachments

Description Jerome Simeon 2005-12-13 20:50:51 UTC
fn-distinct-values-mixed-args-019
fn-distinct-values-mixed-args-020
fn-distinct-values-mixed-args-021
fn-distinct-values-mixed-args-025
fn-distinct-values-mixed-args-026
  xs:float('NaN') does not equal itself, so there should be two values
  in the result.

  The first two tests (19-20) look the same, is that intentional?
  The last two tests (25-26) look the same, is that intentional?

- Jerome
Comment 1 Andrew Eisenberg 2005-12-16 14:53:10 UTC
I don't believe that there should be two NaNs in these results. F&O, section
15.1.6 fn:distinct-values, says:

"For xs:float and xs:double values, positive zero is equal to negative zero and,
although NaN does not equal itself, if $arg contains multiple NaN values a
single NaN is returned."

19/20 and 25/26 do appear to be duplicates, however.
Comment 2 Jerome Simeon 2006-02-08 04:51:29 UTC
Agreeing with the response. Withdrawing the comment and closing the bug.
- Jerome