• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

romshark / icumsg / 38141687490
98%

Build:
DEFAULT BRANCH: main
Ran 11 Oct 2026 01:04PM UTC
Jobs 1
Files 7
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Oct 2026 01:03PM UTC coverage: 97.655% (-0.04%) from 97.692%
38141687490

push

github

romshark
fix: Accept doubles and selectordinal offsets

Accept any double value as an explicit value or offset, including one
with a leading zero, and accept an offset in a selectordinal:

    {n, plural, =1.5{a} =-1{b} =01{c} other{d}}

    Before: ErrExpectBracketOpen at byte 14
    After:  no error

    {n, selectordinal, offset:1 one{#st} other{#th}}

    Before: ErrInvalidOption at byte 19
    After:  no error

In the pluralStyle syntax of [ICU4C PluralFormat], explicit values and
offsets are numbers, which [ICU4C ChoiceFormat] defines as double
values in unlocalized ASCII. The grammar in [ICU4C MessageFormat] rules
out leading zeros only in argument numbers, and it gives selectordinal
the same pluralStyle as plural, so parse both with consumePluralArg.

[ICU4C PluralFormat] selects the explicit value that equals the number
it formats, so report options with equal values as duplicates, however
they're written:

    {n, plural, =1{a} =1.0{b} other{c}}

    Before: ErrExpectBracketOpen at byte 20
    After:  ErrDuplicateOption at byte 18

Argument types stay lowercase, as the grammar in [ICU4C MessageFormat]
writes them.

55 of 55 new or added lines in 1 file covered. (100.0%)

1749 of 1791 relevant lines covered (97.65%)

957.53 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38141687490.1 11 Oct 2026 01:04PM UTC 7
97.65
GitHub Action Run
Source Files on build 38141687490
  • Tree
  • List 7
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38141687490
  • f6009445 on github
  • Prev Build on main (#38138386980)
  • Next Build on main (#38145829389)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc