W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2013

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 18 Jan 2013 16:26:49 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-19004-523-qcUPWDt9g6@http.www.w3.org/Bugs/Public/>

--- Comment #15 from Tim Mills <tim@cbcl.co.uk> ---
Following the changes, I think the following test cases need fixing in the test

format-integer-025: format-integer(1500000, '#')
format-integer-025: format-integer(1500000, '#a')

These should act as if the default primary format token was used rather than
expecting an error.

format-integer-061: format-integer(1, ';')

This should expect an error, and not behave as if the default primary format
token was supplied because:

"If the string contains one or more semicolons then everything that precedes
the last semicolon is taken as the primary format token"

giving a zero-length primary format token and 

"The primary format token is always present and must not be zero-length."

hence the error.

I also believe the regex governing the format modifier to be incorrect.  It is
stated as:


but I think it should be


because the former requires an argument to 'c' or 'o' whereas the specification

"either c or o, optionally followed by a sequence of characters enclosed
between parentheses, to indicate cardinal or ordinal numbering respectively,
the default being cardinal numbering"

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 18 January 2013 16:26:50 UTC

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