ICU-4820 Allow API to return informational warning codes
X-SVN-Rev: 18522
This commit is contained in:
parent
87b2dc6d5e
commit
d3efd24dcc
@ -2273,13 +2273,12 @@ static void TestNonexistentLanguageExemplars(void) {
|
|||||||
/* JB 4068 - Nonexistent language */
|
/* JB 4068 - Nonexistent language */
|
||||||
UErrorCode ec = U_ZERO_ERROR;
|
UErrorCode ec = U_ZERO_ERROR;
|
||||||
ULocaleData *uld = ulocdata_open("qqq",&ec);
|
ULocaleData *uld = ulocdata_open("qqq",&ec);
|
||||||
USet *nothing = ulocdata_getExemplarSet(uld, NULL, 0, ULOCDATA_ES_STANDARD, &ec);
|
|
||||||
uset_close(nothing);
|
|
||||||
ulocdata_close(uld);
|
|
||||||
if (ec != U_USING_DEFAULT_WARNING) {
|
if (ec != U_USING_DEFAULT_WARNING) {
|
||||||
log_err("Exemplar set for \"qqq\", expecting U_USING_DEFAULT_WARNING, but got %s\n",
|
log_err("Exemplar set for \"qqq\", expecting U_USING_DEFAULT_WARNING, but got %s\n",
|
||||||
u_errorName(ec));
|
u_errorName(ec));
|
||||||
}
|
}
|
||||||
|
uset_close(ulocdata_getExemplarSet(uld, NULL, 0, ULOCDATA_ES_STANDARD, &ec));
|
||||||
|
ulocdata_close(uld);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void TestAcceptLanguage(void) {
|
static void TestAcceptLanguage(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user