Updating testData

Structure

There are currently 4 directories in common/testData. Each has a _readme.txt with copyright information for all the files in that directory. The format of the files in the directory is either in the individual data files, or in the _readme.txt
  • localeIdentifiers — generated data for use by clients
    • localeCanonicalization.txt
    • localeDisplayName.txt
  • segmentation — curated data used in CLDR testing, and can be used by clients
    • graphemeCluster
      • TestSegmenter-Bengali.txt
      • TestSegmenter-Devanagari.txt
      • ...
  • transforms — curated data used in CLDR testing, and can be used by clients
    • am-fonipa-t-am.txt
    • am-Latn-t-am-m0-bgn.txt
    • am-t-am-fonipa.txt
    • ...
  • units — generated data for use by clients
    • unitPreferencesTest.txt
    • unitsTest.txt

Generation

To produce the generated data (units/ and localeIdentifiers/):
  1. units/
    1. run TestUnits with -DTestUnits:GENERATE_TESTS, and copy the relevant sections into the two files as per generated instructions. Compare, verify, and commit.
  2. localeIdentifiers/
    1. localeCanonicalization.txt
      • run GenerateLocaleIDTestData.java. It will generate the file in place.
    2. localeDisplayName.txt
      1. run TestLocaleDisplay.java -v. Copy the section under TestLocaleDisplay into the file (after the header).

Issues

Comments