mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-2755 added getLocale test to factory-based coll registration
X-SVN-Rev: 11789
This commit is contained in:
parent
0fcfe71911
commit
717d15653c
1 changed files with 9 additions and 0 deletions
|
@ -305,6 +305,15 @@ void CollationServiceTest::TestRegisterFactory(void)
|
|||
if (*jpcol != *ncol) {
|
||||
errln("jpcol for fu_FU_FOO failed");
|
||||
}
|
||||
|
||||
Locale loc = ncol->getLocale(ULOC_REQUESTED_LOCALE, status);
|
||||
if (loc != fu_FU_FOO) {
|
||||
errln((const UnicodeString&)"requested locale for fu_FU_FOO is not fu_FU_FOO but " + loc.getName());
|
||||
}
|
||||
loc = ncol->getLocale(ULOC_VALID_LOCALE, status);
|
||||
if (loc != fu_FU) {
|
||||
errln((const UnicodeString&)"valid locale for fu_FU_FOO is not fu_FU but " + loc.getName());
|
||||
}
|
||||
delete ncol; ncol = NULL;
|
||||
|
||||
UnicodeString locName = fu_FU.getName();
|
||||
|
|
Loading…
Add table
Reference in a new issue