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 2930 - Last digit wrong in fn-avg-mix-args-013 / 015
Summary: Last digit wrong in fn-avg-mix-args-013 / 015
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.6
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-23 18:16 UTC by Jerome Simeon
Modified: 2007-09-12 14:55 UTC (History)
0 users

See Also:


Attachments

Description Jerome Simeon 2006-02-23 18:16:51 UTC
fn-avg-mix-args-013
fn-avg-mix-args-015

  I believe the expected result should be:

  -4.9999999E17

  rather than

  -4.99999992E17

- Jerome
Comment 1 Jerome Simeon 2006-02-23 18:17:57 UTC
A similar comment for

fn-avg-mix-args-020
fn-avg-mix-args-022

  The expected result should be:

  8.9884656743115785E307

  rather than

  8.988465674311579E307

- Jerome
Comment 2 Carmelo Montanez 2006-03-16 16:45:28 UTC
Jerome:

These are Ravi's tests.  Reassigning the bug to him.

Carmelo
Comment 3 Ravindranath (Ravi) Chennoju 2006-04-13 23:12:04 UTC
Fixed fn-avg-mix-args-013.xq fn-avg-mix-args-015.xq fn-avg-mix-args-020.xq fn-avg-mix-args-022.xq tests and their output.

Followed the resolution suggested in Bug#2895 (below is the clip):
------------------------------------------------------------------
Suggested resolution: in many of these tests the query produces a single
float/double as the result. In these cases replace the current query expression
EXPR by

EXPR eq EXPECTED

where EXPECTED is the expected result. (This also has the advantage that a
single "expected results" file containing the value "true" can be used repeatedly).
Comment 4 Jerome Simeon 2006-10-02 22:55:17 UTC
I don't think this solved the problem as -4.9999999E17 and -4.99999992E17 are not 'eq'.
- Jerome
Comment 5 Frans Englich 2007-09-12 14:55:27 UTC
A fix has been attempted in CVS, XQTS_current.zip is updated.

If the resolution is satisfactory, feel free to change status to CLOSED,
otherwise reopen this report. If no feedback is returned within two weeks, this report will automatically be closed. Thanks for reporting!