|
1 | 1 | © 2024 and later: Unicode, Inc. and others.
|
2 | 2 | License & terms of use: http://www.unicode.org/copyright.html
|
3 | 3 |
|
4 |
| -The format of the JSON files in this directory follows the same format as `test-core.json` |
5 |
| -in the spec, described in: |
| 4 | +The format of the JSON files in this directory and subdirectories |
| 5 | +follow the test schema defined in the Conformance repository: |
6 | 6 |
|
7 |
| -https://github.com/unicode-org/message-format-wg/blob/main/test/README.md |
| 7 | +https://github.com/unicode-org/conformance/blob/main/schema/message_fmt2/testgen_schema.json |
8 | 8 |
|
9 |
| -The `parts` field is not used. |
| 9 | +(as of https://github.com/unicode-org/conformance/pull/255 or later). |
10 | 10 |
|
11 |
| -# JSON extensions |
12 |
| - |
13 |
| -An additional `comment` field may be present, which is only for human readers. |
14 |
| - |
15 |
| -A "srcs" field, whose value is an array of strings, may be present instead |
16 |
| -of "src". The strings are concatenated to get the message. |
| 11 | +# JSON notes |
17 | 12 |
|
18 | 13 | In the "params" field, a date parameter can be expressed as:
|
19 | 14 | { "date": n }
|
@@ -46,43 +41,3 @@ If present, "char" reflects the expected character offset and "line"
|
46 | 41 | reflects the expected line number in the parse error.
|
47 | 42 | The files with "diagnostics" in the name have these fields filled in.
|
48 | 43 |
|
49 |
| -# ICU4C vs. ICU4J tests |
50 |
| - |
51 |
| -The following tests are run in both ICU4C and ICU4J: |
52 |
| - |
53 |
| -* alias-selector-annotations.json |
54 |
| -* duplicate-declarations.json |
55 |
| -* icu-parser-tests.json |
56 |
| - - Two tests removed while single-sourcing tests, because a `{{}}` message body |
57 |
| - had to be added to get it to parse in ICU4C, and this broke the test in ICU4J. |
58 |
| - These tests are in icu-parser-tests-old.json |
59 |
| -* icu-test-functions.json |
60 |
| - - Some tests marked as ignored |
61 |
| -* icu-test-previous-release.json |
62 |
| - - Some tests marked as ignored |
63 |
| -* icu-test-selectors.json |
64 |
| -* markup.json |
65 |
| -* matches-whitespace.json |
66 |
| - - Some tests marked as ignored |
67 |
| -* more-data-model-errors.json |
68 |
| -* more-syntax-errors.json |
69 |
| -* reserved-syntax.json |
70 |
| - - All tests marked as ignored in Java (resolution errors are suppressed) |
71 |
| -* resolution-errors.json |
72 |
| - - All tests marked as ignored in Java (resolution errors are suppressed) |
73 |
| -* runtime-errors.json |
74 |
| - - All tests marked as ignored in Java (message function errors are suppressed) |
75 |
| -* syntax-errors-diagnostics.json |
76 |
| -* tricky-declarations.json |
77 |
| -* valid-tests.json |
78 |
| - - Some tests marked as ignored |
79 |
| -* spec/* |
80 |
| - - Some tests in test-core.json and test-functions.json marked as ignored |
81 |
| - |
82 |
| -The following tests are only run in ICU4C, either because ICU4J doesn't check |
83 |
| -for invalid options, or because ICU4J doesn't report line/column numbers for |
84 |
| -parse errors: |
85 |
| -* invalid-number-literals-diagnostics.json |
86 |
| -* invalid-options.json |
87 |
| -* syntax-errors-diagnostics-multiline.json |
88 |
| -* syntax-errors-end-of-input.json |
0 commit comments