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 2958 - Not all FunctionDeclaration tests are StaticTyping savvy
Summary: Not all FunctionDeclaration tests are StaticTyping savvy
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 10:09 UTC by Marc Van Cappellen
Modified: 2006-06-17 20:29 UTC (History)
0 users

See Also:


Attachments

Description Marc Van Cappellen 2006-03-02 10:09:45 UTC
There are a number of positive tests in FunctionDeclaration which don't pass 
the Formal Semantics static typing rules.
- function-declaration-007.xq
- function-declaration-008.xq
- function-declaration-009.xq
- function-declaration-011.xq

At least for these tests the necessary type declarations for the arguments 
and/or function result should be added. Actually, note that thse tests are 
inconsistent with most of the others in this directory which do explicilty 
declare the types.

FYI - different queries but the issue is similar to 
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2562

Another solution, depending on what the goal of the test is, add XPTY0004 as an 
expected error.

Thanks,
Marc
Comment 1 Ravindranath (Ravi) Chennoju 2006-03-03 23:23:47 UTC
Fixed tests function-declaration-0[07,08,09,11].xq by using type declaration 
for arguments. 
Comment 2 Marc Van Cappellen 2006-05-12 21:58:48 UTC
Reopened the bug.

There is still an issue with the following 2 tests:
  function-declaration-008
  function-declaration-009
The returned type of the recursive function is not specified. Please add 'as xs:integer' as is done in function-declaration-011

Thanks,
Marc
Comment 3 Ravindranath (Ravi) Chennoju 2006-05-17 23:37:48 UTC
Fixed the tests.
Comment 4 Marc Van Cappellen 2006-06-17 20:29:59 UTC
I confirm this is resolved in XQTS 0.9.4