Comments (2)
CLDR has plural rules tests in the form of samples in the plural rules files:
For example:
<pluralRules locales="sl">
<pluralRule count="one">v = 0 and i % 100 = 1 @integer 1, 101, 201, 301, 401, 501, 601, 701, 1001, …</pluralRule>
<pluralRule count="two">v = 0 and i % 100 = 2 @integer 2, 102, 202, 302, 402, 502, 602, 702, 1002, …</pluralRule>
<pluralRule count="few">v = 0 and i % 100 = 3..4 or v != 0 @integer 3, 4, 103, 104, 203, 204, 303, 304, 403, 404, 503, 504, 603, 604, 703, 704, 1003, … @decimal 0.0~1.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …</pluralRule>
<pluralRule count="other"> @integer 0, 5~19, 100, 1000, 10000, 100000, 1000000, …</pluralRule>
</pluralRules>
The things following @integer
and @decimal
are test cases.
from conformance.
We also need to handle "compact" format, indicated with a "c" instead of "e" in an exponential format.
from conformance.
Related Issues (20)
- Add number range formatter tests
- Add MessageFormat 2 tests
- Refactor ICU4J executor to support multiple ICU versions
- Add schema validation for date/time, list format, relative date/time format. HOT 1
- Add ICU4C test in relative date/time format.
- Fix failing tests in CPP List Format HOT 1
- Fix failing tests in CPP Date/Time format. HOT 1
- Add Plural Rules data generation and testing HOT 1
- Add ICU4X Likely Subtags minimizeFavorScript
- Implement plural ranges in data generation
- Support ICU 75 / CLDR 45 HOT 1
- Support a "known issue" test result type HOT 1
- Remove deprecated field "type" in list_fmt data. Replace with "list_type" HOT 1
- Migrate name of test data field from "type" to "list_type" for list format testing
- Add linting for C++ code
- Classify warnings correctly in logging output
- Support negative tests that expect errors (in MF2 tests) HOT 1
- Parse message_fmt2 API runtime args of type number and datetime args accordingly
- Add compact plural support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conformance.