diff --git a/icu4c/source/test/cintltst/capitst.c b/icu4c/source/test/cintltst/capitst.c index 4470a33468c..7d035815c4a 100644 --- a/icu4c/source/test/cintltst/capitst.c +++ b/icu4c/source/test/cintltst/capitst.c @@ -109,7 +109,7 @@ void addCollAPITest(TestNode** root) addTest(root, &TestSafeClone, "tscoll/capitst/TestSafeClone"); addTest(root, &TestGetSetAttr, "tscoll/capitst/TestGetSetAttr"); addTest(root, &TestBounds, "tscoll/capitst/TestBounds"); - + addTest(root, &TestGetLocale, "tscoll/capitst/TestGetLocale"); } static void doAssert(int condition, const char *message) @@ -962,6 +962,44 @@ void TestElemIter() log_verbose("testing CollationElementIterator ends...\n"); } +void TestGetLocale() { + UErrorCode status = U_ZERO_ERROR; + const char *rules = "&a