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

CLDR Ticket #10024(accepted)

Opened 23 months ago

Last modified 15 months ago

Tests for RBNF

Reported by: sascha Owned by: sascha
Component: other-unittest 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 23 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 23 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 23 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 23 months ago by grhoten

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

comment:5 Changed 17 months ago by sascha

  • Owner changed from sascha to grhoten

I’ll be offline until mid August, and probably won’t be able to do this in time for CLDR v32. If v33 is OK, feel free to re-assign it back to me...

comment:6 Changed 17 months ago by grhoten

  • Owner changed from grhoten to sascha

I think you're really the correct owner of this ticket. You can reschedule as needed.

comment:7 Changed 15 months ago by sascha

  • Milestone changed from 32 to UNSCH

comment:8 Changed 7 weeks ago by mark

  • Component changed from numbers to other-unittest

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.