mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 04:29:31 +00:00
Add test cases for dropping last component(s) of usage.
This commit is contained in:
parent
d406b915c4
commit
2fc5cc2df0
1 changed files with 4 additions and 0 deletions
|
@ -103,6 +103,10 @@ void UnitsDataTest::testGetPreferences() {
|
|||
{"XX default falls back to 001", "length", "default", "XX", WorldLenMax, WorldLenMin},
|
||||
{"Unknown usage US", "length", "foobar", "US", USLenMax, USLenMin},
|
||||
{"Unknown usage 001", "length", "foobar", "XX", WorldLenMax, WorldLenMin},
|
||||
{"Fallback", "length", "person-height-xyzzy", "DE", "meter-and-centimeter",
|
||||
"meter-and-centimeter"},
|
||||
{"Fallback twice", "length", "person-height-xyzzy-foo", "DE", "meter-and-centimeter",
|
||||
"meter-and-centimeter"},
|
||||
};
|
||||
IcuTestErrorCode status(*this, "testGetPreferences");
|
||||
UnitPreferencesOpenedUp preferences(status);
|
||||
|
|
Loading…
Add table
Reference in a new issue