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 4148 - SUN tests: dependency on float/double formatting
Summary: SUN tests: dependency on float/double formatting
Status: NEW
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Sun Tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard: MSM to mark the metadata as described
Keywords: disputedTest
Depends on:
Blocks:
 
Reported: 2007-01-04 13:41 UTC by Michael Kay
Modified: 2012-12-04 00:53 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2007-01-04 13:41:03 UTC
In the Sun ElemDecl test set, tests

   <test set="ElemDecl" group="valueconstraint00501m1" name="Positive"/>
   <test set="ElemDecl" group="valueconstraint00501m2" name="Positive"/>

the essence of the test is to check that the fixed value declared for an element is valid against the definition of the type invoked using xsi:type. The rules state that the canonical lexical representation of the fixed value must be valid against this type. In these two tests the fixed value is a floating point value. Although Part 2 defines a "canonical representation" for float and double, it is not truly canonical, in that multiple representations are permitted. Specifically, an implementation can return 9.999999776482582E-3 as the canonical representation of the value 0.01, and this will violate the pattern facet, causing the instance to be invalid.
Comment 1 Henry S. Thompson 2010-02-04 14:08:12 UTC
If we agree with Mike's analysis, I guess this test gets deleted
Comment 2 David Ezell 2010-04-23 16:20:52 UTC
The WG decided to mark this one as "result is undefined in 1.0" but the instance is valid in 1.1.