-
-
Notifications
You must be signed in to change notification settings - Fork 545
/
canonical-data.json
244 lines (244 loc) · 7.13 KB
/
canonical-data.json
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
{
"exercise": "anagram",
"cases": [
{
"uuid": "dd40c4d2-3c8b-44e5-992a-f42b393ec373",
"description": "no matches",
"property": "findAnagrams",
"input": {
"subject": "diaper",
"candidates": ["hello", "world", "zombies", "pants"]
},
"expected": []
},
{
"uuid": "b3cca662-f50a-489e-ae10-ab8290a09bdc",
"description": "detects two anagrams",
"property": "findAnagrams",
"input": {
"subject": "master",
"candidates": ["stream", "pigeon", "maters"]
},
"expected": ["stream", "maters"]
},
{
"uuid": "03eb9bbe-8906-4ea0-84fa-ffe711b52c8b",
"reimplements": "b3cca662-f50a-489e-ae10-ab8290a09bdc",
"description": "detects two anagrams",
"comments": [
"Reimplemented to be consistent about removing references to 'master'"
],
"property": "findAnagrams",
"input": {
"subject": "solemn",
"candidates": ["lemons", "cherry", "melons"]
},
"expected": ["lemons", "melons"]
},
{
"uuid": "a27558ee-9ba0-4552-96b1-ecf665b06556",
"description": "does not detect anagram subsets",
"property": "findAnagrams",
"input": {
"subject": "good",
"candidates": ["dog", "goody"]
},
"expected": []
},
{
"uuid": "64cd4584-fc15-4781-b633-3d814c4941a4",
"description": "detects anagram",
"property": "findAnagrams",
"input": {
"subject": "listen",
"candidates": ["enlists", "google", "inlets", "banana"]
},
"expected": ["inlets"]
},
{
"uuid": "99c91beb-838f-4ccd-b123-935139917283",
"description": "detects three anagrams",
"property": "findAnagrams",
"input": {
"subject": "allergy",
"candidates": [
"gallery",
"ballerina",
"regally",
"clergy",
"largely",
"leading"
]
},
"expected": ["gallery", "regally", "largely"]
},
{
"uuid": "78487770-e258-4e1f-a646-8ece10950d90",
"description": "detects multiple anagrams with different case",
"property": "findAnagrams",
"input": {
"subject": "nose",
"candidates": ["Eons", "ONES"]
},
"expected": ["Eons", "ONES"]
},
{
"uuid": "1d0ab8aa-362f-49b7-9902-3d0c668d557b",
"description": "does not detect non-anagrams with identical checksum",
"property": "findAnagrams",
"input": {
"subject": "mass",
"candidates": ["last"]
},
"expected": []
},
{
"uuid": "9e632c0b-c0b1-4804-8cc1-e295dea6d8a8",
"description": "detects anagrams case-insensitively",
"property": "findAnagrams",
"input": {
"subject": "Orchestra",
"candidates": ["cashregister", "Carthorse", "radishes"]
},
"expected": ["Carthorse"]
},
{
"uuid": "b248e49f-0905-48d2-9c8d-bd02d8c3e392",
"description": "detects anagrams using case-insensitive subject",
"property": "findAnagrams",
"input": {
"subject": "Orchestra",
"candidates": ["cashregister", "carthorse", "radishes"]
},
"expected": ["carthorse"]
},
{
"uuid": "f367325c-78ec-411c-be76-e79047f4bd54",
"description": "detects anagrams using case-insensitive possible matches",
"property": "findAnagrams",
"input": {
"subject": "orchestra",
"candidates": ["cashregister", "Carthorse", "radishes"]
},
"expected": ["Carthorse"]
},
{
"uuid": "7cc195ad-e3c7-44ee-9fd2-d3c344806a2c",
"description": "does not detect an anagram if the original word is repeated",
"property": "findAnagrams",
"input": {
"subject": "go",
"candidates": ["go Go GO"]
},
"expected": []
},
{
"uuid": "630abb71-a94e-4715-8395-179ec1df9f91",
"reimplements": "7cc195ad-e3c7-44ee-9fd2-d3c344806a2c",
"description": "does not detect an anagram if the original word is repeated",
"property": "findAnagrams",
"input": {
"subject": "go",
"candidates": ["goGoGO"]
},
"expected": []
},
{
"uuid": "9878a1c9-d6ea-4235-ae51-3ea2befd6842",
"description": "anagrams must use all letters exactly once",
"property": "findAnagrams",
"input": {
"subject": "tapper",
"candidates": ["patter"]
},
"expected": []
},
{
"uuid": "85757361-4535-45fd-ac0e-3810d40debc1",
"description": "words are not anagrams of themselves (case-insensitive)",
"property": "findAnagrams",
"input": {
"subject": "BANANA",
"candidates": ["BANANA", "Banana", "banana"]
},
"expected": []
},
{
"uuid": "68934ed0-010b-4ef9-857a-20c9012d1ebf",
"reimplements": "85757361-4535-45fd-ac0e-3810d40debc1",
"description": "words are not anagrams of themselves",
"property": "findAnagrams",
"input": {
"subject": "BANANA",
"candidates": ["BANANA"]
},
"expected": []
},
{
"uuid": "589384f3-4c8a-4e7d-9edc-51c3e5f0c90e",
"reimplements": "85757361-4535-45fd-ac0e-3810d40debc1",
"description": "words are not anagrams of themselves even if letter case is partially different",
"property": "findAnagrams",
"input": {
"subject": "BANANA",
"candidates": ["Banana"]
},
"expected": []
},
{
"uuid": "ba53e423-7e02-41ee-9ae2-71f91e6d18e6",
"reimplements": "85757361-4535-45fd-ac0e-3810d40debc1",
"description": "words are not anagrams of themselves even if letter case is completely different",
"property": "findAnagrams",
"input": {
"subject": "BANANA",
"candidates": ["banana"]
},
"expected": []
},
{
"uuid": "a0705568-628c-4b55-9798-82e4acde51ca",
"description": "words other than themselves can be anagrams",
"property": "findAnagrams",
"input": {
"subject": "LISTEN",
"candidates": ["Listen", "Silent", "LISTEN"]
},
"expected": ["Silent"]
},
{
"uuid": "33d3f67e-fbb9-49d3-a90e-0beb00861da7",
"reimplements": "a0705568-628c-4b55-9798-82e4acde51ca",
"description": "words other than themselves can be anagrams",
"property": "findAnagrams",
"input": {
"subject": "LISTEN",
"candidates": ["LISTEN", "Silent"]
},
"expected": ["Silent"]
},
{
"uuid": "a6854f66-eec1-4afd-a137-62ef2870c051",
"description": "handles case of greek letters",
"scenarios": ["unicode"],
"property": "findAnagrams",
"input": {
"subject": "ΑΒΓ",
"candidates": ["ΒΓΑ", "ΒΓΔ", "γβα", "αβγ"]
},
"expected": ["ΒΓΑ", "γβα"]
},
{
"uuid": "fd3509e5-e3ba-409d-ac3d-a9ac84d13296",
"description": "different characters may have the same bytes",
"comments": ["a⬂ => 61 E2 AC 82", "€a => E2 82 AC 61"],
"scenarios": ["unicode"],
"property": "findAnagrams",
"input": {
"subject": "a⬂",
"candidates": ["€a"]
},
"expected": []
}
]
}