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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=19004

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

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:

^([co]\(.+\))?[at]?$. 

but I think it should be

^([co](\(.+\))?)?[at]?$. 

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

"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