From 9f6f2d83d757f924635baf3171b2361cea6b373f Mon Sep 17 00:00:00 2001 From: Doug Felt Date: Tue, 16 Feb 2010 18:21:52 +0000 Subject: [PATCH] ICU-7342 enhance test X-SVN-Rev: 27576 --- icu4c/source/test/intltest/loctest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/icu4c/source/test/intltest/loctest.cpp b/icu4c/source/test/intltest/loctest.cpp index 141dada8eec..718bbad1b12 100644 --- a/icu4c/source/test/intltest/loctest.cpp +++ b/icu4c/source/test/intltest/loctest.cpp @@ -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); }