mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 22:15:31 +00:00
ICU-7342 enhance test
X-SVN-Rev: 27576
This commit is contained in:
parent
6590b1bd7c
commit
9f6f2d83d7
1 changed files with 6 additions and 0 deletions
|
@ -2500,4 +2500,10 @@ void LocaleTest::TestGetVariantWithKeywords(void)
|
|||
const char *variant = l.getVariant();
|
||||
logln(variant);
|
||||
test_assert(strcmp("VALLEY", variant) == 0);
|
||||
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
char buffer[50];
|
||||
int32_t len = l.getKeywordValue("foo", buffer, 50, status);
|
||||
buffer[len] = '\0';
|
||||
test_assert(strcmp("value", buffer) == 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue