W3C home > Mailing lists > Public > public-xml-schema-testsuite@w3.org > January 2007

[Bug 4148] SUN tests: dependency on float/double formatting

From: <bugzilla@wiggum.w3.org>
Date: Thu, 04 Jan 2007 13:41:05 +0000
To: public-xml-schema-testsuite@w3.org
Message-Id: <E1H2Sq9-0004eK-CB@wiggum.w3.org>


           Summary: SUN tests: dependency on float/double formatting
           Product: XML Schema Test Suite
           Version: 2006-11-06
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Sun Tests
        AssignedTo: ht@inf.ed.ac.uk
        ReportedBy: mike@saxonica.com
         QAContact: public-xml-schema-testsuite@w3.org

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.
Received on Thursday, 4 January 2007 13:41:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:08:48 UTC