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 5911 - CVS: Static Typing: K-SeqRemoveFunc-13
Summary: CVS: Static Typing: K-SeqRemoveFunc-13
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-30 09:40 UTC by Tim Mills
Modified: 2008-11-20 09:04 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2008-07-30 09:40:00 UTC
This test should expect the empty sequence and (in the case of static typing implementations XPST0005).

By applying the FS rule:

statEnv |-  Type1 <: xs:integer
-------------------------------------------------------------------------
statEnv |-  (FN-URI,"remove")(Type, Type1) : prime(Type) · quantifier(Type) · ?

where Type = none (the static return type of fn:error())

prime(Type) = none
quantifier(Type) = 1
prime(Type) · quantifier(Type) · ? = empty

(:*******************************************************:)
(: Test: K-SeqRemoveFunc-13                              :)
(: Written by: Frans Englich                             :)
(: Date: 2007-11-22T11:31:22+01:00                       :)
(: Purpose: A test whose essence is: `remove(error(), 1)`. :)
(:*******************************************************:)
remove(error(), 1)
Comment 1 Frans Englich 2008-11-13 17:34:26 UTC
Fixed in CVS, added an alternative static typing query.
Comment 2 Tim Mills 2008-11-20 09:04:49 UTC
Thanks.