xref: /aosp_15_r20/external/cldr/common/testData/messageFormat/data-model-errors.json (revision 912701f9769bb47905792267661f0baf2b85bed5)
1{
2    "Variant Key Mismatch": [
3        ".match {$foo :x} * * {{foo}}",
4        ".match {$foo :x} {$bar :x} * {{foo}}"
5    ],
6    "Missing Fallback Variant": [
7        ".match {:foo} 1 {{_}}",
8        ".match {:foo} other {{_}}",
9        ".match {:foo} {:bar} * 1 {{_}} 1 * {{_}}"
10    ],
11    "Missing Selector Annotation": [
12        ".match {$foo} one {{one}} * {{other}}",
13        ".input {$foo} .match {$foo} one {{one}} * {{other}}",
14        ".local $foo = {$bar} .match {$foo} one {{one}} * {{other}}"
15    ],
16    "Duplicate Declaration": [
17        ".input {$foo} .input {$foo} {{_}}",
18        ".input {$foo} .local $foo = {42} {{_}}",
19        ".local $foo = {42} .input {$foo} {{_}}",
20        ".local $foo = {:unknown} .local $foo = {42} {{_}}",
21        ".local $foo = {$bar} .local $bar = {42} {{_}}",
22        ".local $foo = {$foo} {{_}}",
23        ".local $foo = {$bar} .local $bar = {$baz} {{_}}",
24        ".local $foo = {$bar :func} .local $bar = {$baz} {{_}}",
25        ".local $foo = {42 :func opt=$foo} {{_}}",
26        ".local $foo = {42 :func opt=$bar} .local $bar = {42} {{_}}"
27    ],
28    "Duplicate Option Name": [
29            "bad {:placeholder option=x option=x}",
30            "bad {:placeholder ns:option=x ns:option=y}"
31    ]
32}
33