ICU-10774 (review) add documentation of what a test is doing

X-SVN-Rev: 36864
This commit is contained in:
Steven R. Loomis 2014-12-11 23:15:57 +00:00
parent 21dfe930f9
commit 2480631b1c

View File

@ -2077,6 +2077,14 @@ void LocaleTest::TestGetLocale(void) {
}
#if !UCONFIG_NO_COLLATION
/**
* Compare Collator::getAvailableLocales(int) [ "old", returning an array ]
* with Collator::getAvailableLocales() [ "new", returning a StringEnumeration ]
* These should be identical (check their API docs) EXCEPT that
* if expectExtra is non-NULL, it will be in the "new" array but not "old".
* Does not return any status but calls errln on error.
* @param expectExtra an extra locale, will be in "new" but not "old". Or NULL.
*/
void LocaleTest::checkRegisteredCollators(const char *expectExtra) {
UErrorCode status = U_ZERO_ERROR;
int32_t count1=0,count2=0;