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 2964 - concerning fn-avg-mix-args-066
Summary: concerning fn-avg-mix-args-066
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.6
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ravindranath (Ravi) Chennoju
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 13:41 UTC by Marc Van Cappellen
Modified: 2006-05-17 22:16 UTC (History)
0 users

See Also:


Attachments

Description Marc Van Cappellen 2006-03-02 13:41:23 UTC
fn-avg-mix-args-066 looks rather weird.

a) the referenced file doesn't exist in the epository
b) the test expects FORG0001, but the query doesn't contain a cast expression 
or constructor function.

Thanks,
Marc
Comment 1 Andrew Eisenberg 2006-03-03 21:10:56 UTC
> a) the referenced file doesn't exist in the epository

The query should use a variable in place of the doc function.

> b) the test expects FORG0001, but the query doesn't contain a
> cast expression or constructor function.

The test is invoking fn:avg on a node. The parameter for fn:avg is
xdt:anyAtomicType*. Atomizing the node, which has mixed content, provides a
typed value that is the same as its string value. fn:avg tries to cast the
string value to xs:double and fails, producing FORG0001.
Comment 2 Ravindranath (Ravi) Chennoju 2006-03-03 22:57:39 UTC
Oops. My mistake, not changing the test to use variable instead of doc 
function. Test is fixed now.
Comment 3 Marc Van Cappellen 2006-05-17 22:16:05 UTC
verified and looks ok