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

unicode-org / icu4x / 16950115363

13 Aug 2025 09:47PM UTC coverage: 72.76%. Remained the same
16950115363

push

github

web-flow
Add monotonic_year and tests (#6800)

Supersedes #6762

This also fixes the bug that we were bounds checking extended year: You
should be able to do things like `Gregorian::new(year = -100, era =
None, ...)`, but we errored here.


In the process; I discovered that Chinese was _accepting_ related_iso as
extended year, but _producing_ ICU4C extended year. This is
inconsistent.


This serves as another nail in the coffin for any ICU4C-parity guarantee
we had for extended_year, because we now have found multiple cases where
we are not handling it the ICU4C way already.

The name monotonic_year is to be bikeshed.

---------

Co-authored-by: Robert Bastian <4706271+robertbastian@users.noreply.github.com>

112 of 124 new or added lines in 22 files covered. (90.32%)

10 existing lines in 9 files now uncovered.

59819 of 82214 relevant lines covered (72.76%)

455051.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.95
/components/datetime/src/pattern/formatter.rs


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc