[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search

CLDR Ticket #10024(accepted unittest)

Opened 3 months ago

Last modified 3 months ago

Tests for RBNF

Reported by: sascha Owned by: sascha
Component: numbers Data Locale:
Phase: rc Review:
Weeks: Data Xpath:


It would be useful to have test cases for Rule-Based Number Formatting (RBNF) in various locales. This would be quite similar to the current transform tests in http://unicode.org/repos/cldr/trunk/tools/cldr-unittest/src/org/unicode/cldr/unittest/data/transformtest/ — having that test suite is immensely useful for maintaining CLDR transforms.

The test expectations for RBNF could perhaps look like this: http://unicode.org/cldr/trac/attachment/ticket/8849/test-rbnf-pl.txt and live in some testdata directory inside the CLDR repo, perhaps as a sibling to the current transformtest files (link above). As with transform tests, the locale could be inferred from the file name.


Change History

comment:1 Changed 3 months ago by mark

  • Cc pedberg added
  • Owner changed from anybody to grhoten
  • Status changed from new to accepted
  • Phase changed from dsub to rc
  • Milestone changed from UNSCH to 32

comment:2 Changed 3 months ago by grhoten

  • Priority changed from assess to minor
  • Milestone changed from 32 to UNSCH

I use http://st.unicode.org/cldr-apps/numbers.jsp for spot checking new rules for round tripping. This makes it much easier to expose issues earlier because you get instantaneous feedback on the actual results of the rules without being encumbered by an CLDR/ICU development environment. This is important when working on new rules with a language expert.

As far as other tests, there's already several unit tests within ICU for several languages. Those tests just aren't exposed as data files. You are welcome to work on extending the testing framework for RBNF, but this task has no priority for me. It's a good idea, but it's a non-trivial amount of effort to work on it.

comment:3 Changed 3 months ago by sascha

Makes sense, but may I grab this ticket to implement this for CLDR 32? The text processing library for the Go programming language would like to support RBNF using a native Go implementation (not wrapping ICU). For this, it would be useful if they could take RBNF test cases from CLDR.

You mentioned that ICU already has some tests in code; can you point me to those tests?

comment:4 Changed 3 months ago by grhoten

  • Cc grhoten added
  • Owner changed from grhoten to sascha
  • Milestone changed from UNSCH to 32

Add a comment

Modify Ticket

as accepted

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.