From bda778fc0e557d44e1ba03b0c542cb9d0b96ae61 Mon Sep 17 00:00:00 2001 From: Travis Keep Date: Thu, 30 May 2013 20:20:17 +0000 Subject: [PATCH] ICU-10179 Add documentation to TestLocaleStructure explaining that it validates each locale .txt file against the golden structLocale.txt file so that developers know that to fix this test means adding the templates for any new data to structLocale.txt X-SVN-Rev: 33778 --- icu4c/source/test/cintltst/cldrtest.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/icu4c/source/test/cintltst/cldrtest.c b/icu4c/source/test/cintltst/cldrtest.c index 942995e400a..d5df81b086d 100644 --- a/icu4c/source/test/cintltst/cldrtest.c +++ b/icu4c/source/test/cintltst/cldrtest.c @@ -490,6 +490,12 @@ testLCID(UResourceBundle *currentBundle, #if !UCONFIG_NO_FILE_IO && !UCONFIG_NO_LEGACY_CONVERSION static void TestLocaleStructure(void) { + // This test checks the locale structure against a key file located + // at source/test/testdata/structLocale.txt. When adding new data to + // a loale file such as en.txt, the structLocale.txt file must be changed + // too to include the the template of the new data. Otherwise this test + // will fail! + UResourceBundle *root, *currentLocale; int32_t locCount = uloc_countAvailable(); int32_t locIndex; -- 2.40.0