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 2805 - Incorrect error FOCA0001 and FOCA0003 expected for non-floating point inputs
Summary: Incorrect error FOCA0001 and FOCA0003 expected for non-floating point inputs
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.4
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-07 01:42 UTC by Naresh Chainani
Modified: 2006-06-22 13:01 UTC (History)
0 users

See Also:


Attachments

Description Naresh Chainani 2006-02-07 01:42:33 UTC
The test cases CastFOCA0001-1 and CastFOCA0003-1 use integer literals as input 
and expect FOCA0001 and FOCA0003 to be raised. But these error qnames are 
limited to the case when input type is xs:float or xs:double. See second 
bullet of Section 17.1.3.3 and 17.1.3.4.

I think the test case should be rewritten to use floating point literals:
xs:decimal(99e100);
xs:integer(99e100);

On a separate note, I find it interesting that the test case assumes what the 
implementation-defined limits for xs:decimal and xs:integer are. Perhaps the 
test case should allow both results -- correct answer and error.
Comment 1 Naresh Chainani 2006-02-07 02:05:18 UTC
The section numbers mentioned in the previous comment pertain to the F&O spec.
Comment 2 Carmelo Montanez 2006-02-07 16:16:38 UTC
Naresh:

Thanks for the feedback.  I made the changes as suggested.  Implementation
limits are hard to test for as we can only guess what that limit is.  I am 
hoping most implementations will generate the error.  Both the error 
and the number are given as possible outcomes.  Please close the bug if in 
agreement and able to verify.

Thanks,
Carmelo