CLONE - Add test files to LDML

Description

1. I'd like to add data test files for data generated according to descriptions in LDML. That way an implementation can see whether it matches what LDML describes.

We already have data test files for transforms and some other cases, but those are "hidden" in ...tools/cldr-unittest/src/org/unicode/cldr/unittest/data/ and various other locations.

I propose adding them to a top-level directory, either:

cldr/testdata

or

cldr/common/testdata

We would have subdirectories, such as:

cldr/common/testdata/segmentation
cldr/common/testdata/transforms
...

The format for files in each directory would be in a readme.txt*

For example, the transform test files are currently of the format:
<source><tab><target>
...

The grapheme cluster files are of the form:
<lineNumber> ; <source> ; <sourceWithĂ·Inserted>
...

Whereas some other files are of the format:
@<parameterName>=<parameterValue
<source>;<target>
...

2. As a part of this ticket, I'd like to add some generated test files leveraging current code, such as for generating locale names, validating locale IDs, etc.


``* We could decide over time to unify the data formats, but for now just putting them in the same location would be good.

xpath

None

locale

None

Assignee

Mark Davis

Reporter

Mark Davis

Labels

None

tracReporter

mark

tracOwner

mark

tracResolution

None

tracStatus

accepted

Reviewer

None

phase

rc

tracCc

None

tracCreated

Mar 29, 2019, 12:42 PM

Fix versions

Priority

major
Configure