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 2807 - For fn:deep-equal(), float/double value "NaN" equals itself
Summary: For fn:deep-equal(), float/double value "NaN" equals itself
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.4
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ravindranath (Ravi) Chennoju
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-07 02:02 UTC by Naresh Chainani
Modified: 2006-02-16 19:39 UTC (History)
0 users

See Also:


Attachments

Description Naresh Chainani 2006-02-07 02:02:37 UTC
The expected result for fn-deep-equal-mix-args-022 is incorrectly listed as 
false. For fn:deep-equal(), float/double value "NaN" equals itself.

From F&O Section 15.3.1, "If $i1 and $i2 are both atomic values, they are deep-
equal if and only if ($i1 eq $i2) is true. Or if both values are NaN."
Comment 1 Ravindranath (Ravi) Chennoju 2006-02-16 19:39:37 UTC
Fixed the result file.