-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathtest_schema.json
More file actions
199 lines (199 loc) · 7.38 KB
/
test_schema.json
File metadata and controls
199 lines (199 loc) · 7.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
{"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/unicode/conformance/number_format_test.json",
"title": "ICU Conformance test data description",
"description": "This documents the format of number format test data for execution",
"type": "object",
"properties": {
"additionalProperties": false,
"test_type": {
"description": "The name of the test",
"const": "number_fmt"
},
"Test scenario": {
"type": "string",
"description":" Obsolete tag to be removed and replaced with test Type"
},
"description": {
"type": "string"
},
"source": {
"type": "object",
"properties": {
"repository": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"url": {
"type": "string"
},
"tests": {
"description": "list of N test for collation each of type number_format",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"label": {
"description": "A numeric ID, unique for the set of tests",
"type": "string"
},
"hexhash": {
"description": "A hexadecimal hash code for the test without the label",
"type": "string"
},
"locale": {
"description": "language tag for formatting the output",
"type": "string"
},
"pattern": {
"description": "Pattern-style description of parameters. May be used to create a skeleton.",
"type": "string"
},
"skeleton": {
"description": "Skeleton-style description of parameters. ",
"type": "string"
},
"input": {
"description": "string representation of the number to be formatted",
"type": "string"
},
"op": {
"description": "operation on the data, e.g., 'format",
"type": "string"
},
"options": {
"description": "Formatting paramters for the number",
"type": "object",
"properties": {
"notation": {
"type": "string",
"description": "type of formatting, e.g., compact,scientific, unit, etc"
},
"compactDisplay": {
"type": "string",
"description": "more details on how to show compact values",
"enum": ["short", "long"],
"default": "short"
},
"signDisplay": {
"type": "string",
"description": "when toshow the sig for the number",
"enum": ["auto", "always", "exceptZero", "negative", "never"],
"default": "auto"
},
"style": {
"type": "string",
"description": "more details on the style of output",
"enum": ["decimal", "currency", "percent", "unit"]
},
"unit": {
"type": "string",
"description": "what unit to use in output"
},
"unitDisplay": {
"type": "string",
"description": "detail on showing the formatted unit",
"enum": ["long", "short", "narrow"]
},
"currency": {
"type": "string",
"description": "currency to use in curency formatting. ISo 4217 codes. Required if style is 'currency'"
},
"currencyDisplay": {
"type": "string",
"description": "detail on how to show the requested currency",
"enum": ["symbol", "narrowSymbol", "code", "name"],
"default": "symbol"
},
"minimumFractionDigits": {
"type": "integer",
"description": "minimum number of fraction digits to use",
"minimum": 0
},
"maximumFractionDigits": {
"type": "integer",
"description": "maximum number of fraction digits to use",
"minimum": 0
},
"minimumIntegerDigits": {
"type": "integer",
"description": "minimum number of integer digits to use",
"minimum": 0
},
"minimumSignificantDigits": {
"type": "integer",
"description": "minimum number of significant digits to use",
"minimum": 1
},
"maximumSignificantDigits": {
"type": "integer",
"description": "maximum number of significant digits to use",
"minimum": 1
},
"nu": {
"type": "string",
"description": "numbering system tor the output. From set of values",
"enum": ["adlm", "ahom", "arab", "arabext", "bali", "beng",
"bhks", "brah", "cakm", "cham", "deva", "diak", "fullwide",
"gong", "gonm", "gujr", "guru", "hanidec", "hmng", "hmnp",
"java", "kali", "khmr", "knda", "lana", "lanatham", "laoo",
"latn", "lepc", "limb", "mathbold", "mathdbl", "mathmono",
"mathsanb", "mathsans", "mlym", "modi", "mong", "mroo", "mtei",
"mymr", "mymrshan", "mymrtlng", "newa", "nkoo", "olck", "orya",
"osma", "rohg", "saur", "segment", "shrd", "sind", "sinh",
"sora", "sund", "takr", "talu", "tamldec", "telu", "thai",
"tibt", "tirh", "vaii", "wara", "wcho"]
},
"roundingPriority": {
"type": "string",
"description": "how rounding is applied when both fraction and significant digits are specified",
"enum": ["auto", "morePrecision", "lessPrecision"],
"default": "auto"
},
"roundingMode": {
"type": "string",
"description": "rounding mode to be used",
"enum": ["ceil", "floor", "expand", "trunc",
"halfCeil", "halfFloor", "halfExpand",
"halfTrunc", "halfEven", "halfOdd",
"unnecessary"],
"default": "halfEven"
},
"roundingIncrement": {
"type": "integer",
"description": "increment used when rounding numbers",
"enum": [1, 2, 5, 10, 20, 25, 50, 100, 200, 250, 500,
1000, 2000, 2500, 5000]
},
"trailingZeroDisplay": {
"type": "string",
"description": "strategy for displaying trailing zeros on whole numbers",
"enum": ["auto", "stripIfInteger"],
"default": "auto"
},
"useGrouping": {
"type": ["boolean", "string"],
"description": "Should we group the outputs?",
"enum": [false, true, "always", "auto", "min2"],
"default": "auto"
}
}
},
"hash_id": {
"description": "Has value of the JSON string omtting label value",
"type": "integer"
}
},
"required": [
"label",
"input"
]
}
}
},
"required": ["test_type", "tests"]
}