-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathtest_schema.json
More file actions
136 lines (135 loc) · 4.12 KB
/
test_schema.json
File metadata and controls
136 lines (135 loc) · 4.12 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/unicode/conformance/collation_test.json'",
"title": "ICU Conformance test data description",
"description": "This documents the format of collation test data for execution",
"type": "object",
"properties": {
"additionalProperties": false,
"description": {
"type": "string"
},
"test_type": {
"description": "The name of this test",
"const": "collation"
},
"Test scenario": {
"type": "string",
"description":" Obsolete tag to be removed and replaced with test Type"
},
"tests": {
"description": "list of N tests for collation each of type collation",
"type": ["array", "null"],
"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"
},
"s1": {
"description": "First string for comparison",
"type": "string"
},
"s2": {
"description": "Second string for comparison",
"type": "string"
},
"locale": {
"description": "optional field indication locale tag for running test",
"type": "string"
},
"ignorePunctuation" : {
"description": "If collation should ignore punctuatio",
"type": "boolean"
},
"source_file" : {
"description": "source file of test data",
"type": "string"
},
"line" : {
"description": "line of the source of test data",
"type": "integer"
},
"compare_type": {
"description": "Optional method for comparing strings",
"type": "string"
},
"strength": {
"description": "Strength of comparison: primary, secondary, ... identical",
"type": "string"
},
"alternate": {
"description": "shifted, non-ignorable",
"type": "string"
},
"numeric": {
"description": "sort as a number value",
"type": "string"
},
"test_description": {
"description": "Option field telling about this particular test",
"type": "string"
},
"reorder": {
"description": "instructions to reorder",
"type": "string"
},
"caseFirst": {
"description": "indicates how case should be considered",
"type": "string"
},
"caseLevel": {
"description": "indicates the level case should be considered",
"type": "string"
},
"backwards": {
"description": "look at it backwards",
"type": "string"
},
"maxVariable": {
"description": "which variable is the maximum, e.g., currency",
"type": "string"
},
"attributes": {
"description": "Optional information about this collation test",
"type": "array"
},
"rules": {
"description": "Optional custom rule set",
"type": "string"
},
"compare_comment": {
"description": "Optional information on comparison method",
"type": "string"
},
"warning": {
"description": "Present when data has a problem",
"type": "string"
},
"hash_id": {
"description": "Has value of the JSON string omtting label value",
"type": "integer"
}
},
"required": [
"label",
"s1",
"s2"
]
}
},
"data_errors": {
"type": ["array", "null"],
"items": {
"type": "array"
}
}
},
"required": ["tests", "test_type"]
}