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 23229 - too specific type tests: failing when given xs:integer instead of xs:decimal
Summary: too specific type tests: failing when given xs:integer instead of xs:decimal
Status: RESOLVED MOVED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 minor
Target Milestone: ---
Assignee: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-12 23:06 UTC by Benito van der Zander
Modified: 2016-04-12 13:45 UTC (History)
2 users (show)

See Also:


Attachments

Description Benito van der Zander 2013-09-12 23:06:27 UTC
These tests

op-numeric-add-1
op-numeric-mod-1
op-numeric-multiply-1
op-numeric-subtract-1
op-numeric-unary-minus-1
op-numeric-unary-plus-1


all require the result of an operation on an integer value of type xs:decimal to have the type xs:decimal.

However (as just discussed on the xquery-talk mailing list) it is legal to cast any integer valued decimal to integer at any time, i.e.  `-xs:decimal(1) instance of xs:integer`  or `xs:decimal(1) instance of xs:integer` might both be true
Comment 1 Michael Kay 2013-10-14 14:47:22 UTC
Personal response/assessment: I agree with the comment. The tests should be reorganized so that an xs:integer result is permitted where an xs:decimal result is expected.
Comment 2 Benito van der Zander 2015-05-01 20:25:24 UTC
These tests also exist in the new XQTS and have the same issues there
Comment 3 O'Neil Delpratt 2016-04-12 13:45:13 UTC
This bug has been transferred to QT3 test suite: See bug #29572