Debian Codegraph @

third_party/rust/icu_locid/tests/fixtures/invalid-extensions.json

raw
1 [
2 {
3 "input": {
4 "type": "Locale",
5 "identifier": "pl-US-x-waytoolongkey"
6 },
7 "output": {
8 "error": "InvalidExtension",
9 "text": "Invalid subtag"
10 }
11 },
12 {
13 "input": {
14 "type": "Locale",
15 "identifier": "pl-US-x-@A_3"
16 },
17 "output": {
18 "error": "InvalidExtension",
19 "text": "Invalid subtag"
20 }
21 },
22 {
23 "input": {
24 "type": "Locale",
25 "identifier": "pl-US-t-h0"
26 },
27 "output": {
28 "error": "InvalidExtension",
29 "text": "Invalid subtag"
30 }
31 },
32 {
33 "input": {
34 "type": "Locale",
35 "identifier": "pl-US-t-h0-x-foo"
36 },
37 "output": {
38 "error": "InvalidExtension",
39 "text": "Invalid subtag"
40 }
41 },
42 {
43 "input": {
44 "type": "Locale",
45 "identifier": "pl-US-t-h0"
46 },
47 "output": {
48 "error": "InvalidExtension",
49 "text": "Invalid subtag"
50 }
51 },
52 {
53 "input": {
54 "type": "Locale",
55 "identifier": "und-t-m0"
56 },
57 "output": {
58 "error": "InvalidExtension",
59 "text": "Invalid subtag"
60 }
61 },
62 {
63 "input": {
64 "type": "Locale",
65 "identifier": "und-t-m0-n0-mixed"
66 },
67 "output": {
68 "error": "InvalidExtension",
69 "text": "Invalid subtag"
70 }
71 },
72 {
73 "input": {
74 "type": "Locale",
75 "identifier": "da-u"
76 },
77 "output": {
78 "error": "InvalidExtension",
79 "text": "Invalid subtag"
80 }
81 },
82 {
83 "input": {
84 "type": "Locale",
85 "identifier": "da-u--"
86 },
87 "output": {
88 "error": "InvalidExtension",
89 "text": "Invalid subtag"
90 }
91 },
92 {
93 "input": {
94 "type": "Locale",
95 "identifier": "da-u-t-latn"
96 },
97 "output": {
98 "error": "InvalidExtension",
99 "text": "Invalid subtag"
100 }
101 },
102 {
103 "input": {
104 "type": "Locale",
105 "identifier": "cmn-hans-cn-u-u"
106 },
107 "output": {
108 "error": "InvalidExtension",
109 "text": "Invalid subtag"
110 }
111 },
112 {
113 "input": {
114 "type": "Locale",
115 "identifier": "de-u-ca-"
116 },
117 "output": {
118 "error": "InvalidExtension",
119 "text": "Invalid subtag"
120 }
121 },
122 {
123 "input": {
124 "type": "Locale",
125 "identifier": "de-u-ca-gregory-"
126 },
127 "output": {
128 "error": "InvalidExtension",
129 "text": "Invalid subtag"
130 }
131 },
132 {
133 "input": {
134 "type": "Locale",
135 "identifier": "de-u-ca-gregory-u-hc-hc24"
136 },
137 "output": {
138 "error": "DuplicatedExtension",
139 "text": "Duplicated extension"
140 }
141 },
142 {
143 "input": {
144 "type": "Locale",
145 "identifier": "de-l-foo-l-bar"
146 },
147 "output": {
148 "error": "DuplicatedExtension",
149 "text": "Duplicated extension"
150 }
151 }
152 ]