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 2941 - Should fn:avg raise XPTY0004?
Summary: Should fn:avg raise XPTY0004?
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-02-26 22:48 UTC by Marc Van Cappellen
Modified: 2006-05-17 22:14 UTC (History)
0 users

See Also:


Attachments

Description Marc Van Cappellen 2006-02-26 22:48:59 UTC
A large number of tests in SeqAVGFunc expect XPTY0004.

However, in http://www.w3.org/TR/xquery-operators/#func-avg we read:
...
If the above conditions are not met, then a type error is raised [err:FORG0006].
...

Don't know if the spec allows to raise XPTY0004 in thse sceanrios, but at least 
we believe that FORG0006 should be added as expected error.

Couple of examples:
-fn-avg-1
-fn-avg-mix-args-028 -> fn-avg-mix-args-065
But also other than fn:avg tests:
-fn-max-1
-fn-min-1.xq

Thanks,
Marc
Comment 1 Carmelo Montanez 2006-03-17 14:25:12 UTC
Marc:

Correct.  This is true of the agregate functions.  Changed the NIST 
test to allow for FORG0006.  Reassigning the bug to Ravi as this may affect
some of his tests.

Thanks,
carmelo
Comment 2 Ravindranath (Ravi) Chennoju 2006-04-15 00:11:57 UTC
Fixed fn-avg-mix-args-028 through fn-avg-mix-args-065, fn-max-1, and fn-min-1.xq.
Changed the expected error from XPTY0004 to FORG0006
Comment 3 Marc Van Cappellen 2006-05-17 22:14:18 UTC
verified and looks ok