W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2012

[Bug 19004] New: [QT3TS] format-integer tests expecting err:FODF1310

From: <bugzilla@jessica.w3.org>
Date: Tue, 25 Sep 2012 08:42:22 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-19004-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19004

           Summary: [QT3TS] format-integer tests expecting err:FODF1310
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
               URL: https://www.w3.org/XML/Group/qtspecs/specifications/xp
                    ath-functions-30/html/Overview.html#func-format-intege
                    r
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
        AssignedTo: oneil@saxonica.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


The F&O 3.0 specification states that

"If the primary format token contains at least one Unicode digit then it is
taken as a decimal digit pattern, and in this case it must match the regular
expression ^((\p{Nd}|#|[^\p{N}\p{L}])+?)$. If it contains a digit but does not
match this pattern, an error is raised [err:FODF1310]."

Thus FODF1310 is ONLY raised when a primary format token contains at least one
Unicode digit AND fails to match the given regular expression.

This is later stated as

"An error is raised [err:FODF1310] if the primary format token contains a digit
but does not match the required regular expression."

The following tests expect an error for the given $pattern.

 format-integer-020: '' (empty string).  This does NOT contain a Unicode digit.
 format-integer-023: '0,000,': This matches the regex.
 format-integer-024: '11#0,000'.  This matches the regex.
 format-integer-025: '#'.  This does NOT contain a Unicode digit.
 format-integer-026: '#a'.  This does NOT contain a Unicode digit.
 format-integer-027: ',123'.  This matches the regex.
 format-integer-028: '0,00,,000'.  This matches the regex.
 format-integer-034: '###&#x10100;0,00'.  This matches the regex.
 format-integer-037: '1;o(-er)z'.  Primary format token '1' matches the regex.
 format-integer-038: 'Ww;o()('.  Primary format token 'Ww' does NOT contain
digit.
 format-integer-039: '&#xa;'.  This does NOT contain a Unicode digit.
 format-integer-040: '123&#x661;'.  This matches the regex.
 format-integer-054: '0#'.  This matches the regex.

One of the following is possible.
a) I'm wrong.
b) The tests are wrong.
c) The specification is wrong.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 25 September 2012 08:42:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:49 UTC