Skip to content

Commit

Permalink
CLDR-17938 Add test data generator for date time formatting
Browse files Browse the repository at this point in the history
See #4011
  • Loading branch information
echeran authored and Squash Bot committed Sep 26, 2024
1 parent 014b413 commit 0d14e89
Show file tree
Hide file tree
Showing 6 changed files with 59,047 additions and 87 deletions.
14 changes: 14 additions & 0 deletions common/testData/datetime/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Test Data for DateTime Formatting

This directory contains test data for DateTime formatting.
This data is the result of the test data generator `GenerateDateTimeTestData.java`.

The design of the test generator is to provide the "expected value" of datetime formatting over several dimensions,
such as locale,
formatting options (date length, calendar, etc.),
and various input datetime values.

The test generator constructs the expected value using the various pieces
(date format pattern, time format pattern, datetime "glue" pattern)
and `SimpleDateFormat`s to combine them together.
Each test case reports the inputs for the test case and the expected value.
Loading

0 comments on commit 0d14e89

Please sign in to comment.