-
-
Notifications
You must be signed in to change notification settings - Fork 551
/
Copy pathcanonical-data.json
213 lines (213 loc) · 5.7 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
{
"exercise": "matrix",
"cases": [
{
"uuid": "ca733dab-9d85-4065-9ef6-a880a951dafd",
"description": "extract row from one number matrix",
"property": "row",
"input": {
"string": "1",
"index": 1
},
"expected": [1]
},
{
"uuid": "5c93ec93-80e1-4268-9fc2-63bc7d23385c",
"description": "can extract row",
"property": "row",
"input": {
"string": "1 2\n3 4",
"index": 2
},
"expected": [3, 4]
},
{
"uuid": "2f1aad89-ad0f-4bd2-9919-99a8bff0305a",
"description": "extract row where numbers have different widths",
"property": "row",
"input": {
"string": "1 2\n10 20",
"index": 2
},
"expected": [10, 20]
},
{
"uuid": "68f7f6ba-57e2-4e87-82d0-ad09889b5204",
"description": "can extract row from non-square matrix with no corresponding column",
"property": "row",
"input": {
"string": "1 2 3\n4 5 6\n7 8 9\n8 7 6",
"index": 4
},
"expected": [8, 7, 6]
},
{
"uuid": "e8c74391-c93b-4aed-8bfe-f3c9beb89ebb",
"description": "extract column from one number matrix",
"property": "column",
"input": {
"string": "1",
"index": 1
},
"expected": [1]
},
{
"uuid": "7136bdbd-b3dc-48c4-a10c-8230976d3727",
"description": "can extract column",
"property": "column",
"input": {
"string": "1 2 3\n4 5 6\n7 8 9",
"index": 3
},
"expected": [3, 6, 9]
},
{
"uuid": "ad64f8d7-bba6-4182-8adf-0c14de3d0eca",
"description": "can extract column from non-square matrix with no corresponding row",
"property": "column",
"input": {
"string": "1 2 3 4\n5 6 7 8\n9 8 7 6",
"index": 4
},
"expected": [4, 8, 6]
},
{
"uuid": "9eddfa5c-8474-440e-ae0a-f018c2a0dd89",
"description": "extract column where numbers have different widths",
"property": "column",
"input": {
"string": "89 1903 3\n18 3 1\n9 4 800",
"index": 2
},
"expected": [1903, 3, 4]
},
{
"uuid": "f5288dbd-2141-453d-9c38-a351d68ed4d9",
"reimplements": "ca733dab-9d85-4065-9ef6-a880a951dafd",
"description": "extract row from one number matrix",
"comments": [
"Expected value is now the entire matrix, not just a single row."
],
"property": "row",
"input": {
"string": "1"
},
"expected": [[1]]
},
{
"uuid": "e094abae-25ba-4dd9-9194-882fee685c81",
"reimplements": "5c93ec93-80e1-4268-9fc2-63bc7d23385c",
"description": "can extract row",
"comments": [
"Expected value is now the entire matrix, not just a single row."
],
"property": "row",
"input": {
"string": "1 2\n3 4"
},
"expected": [
[1, 2],
[3, 4]
]
},
{
"uuid": "53956e40-2d04-44e3-a0a5-d5134259ded4",
"reimplements": "2f1aad89-ad0f-4bd2-9919-99a8bff0305a",
"description": "extract row where numbers have different widths",
"comments": [
"Expected value is now the entire matrix, not just a single row."
],
"property": "row",
"input": {
"string": "1 2\n10 20"
},
"expected": [
[1, 2],
[10, 20]
]
},
{
"uuid": "57cc5c9d-feab-4910-a2f3-a2abf5e400fd",
"reimplements": "68f7f6ba-57e2-4e87-82d0-ad09889b5204",
"description": "can extract row from non-square matrix with no corresponding column",
"comments": [
"Expected value is now the entire matrix, not just a single row."
],
"property": "row",
"input": {
"string": "1 2 3\n4 5 6\n7 8 9\n8 7 6"
},
"expected": [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
[8, 7, 6]
]
},
{
"uuid": "3e02bc02-d090-441c-b3da-45a73e85f80a",
"reimplements": "e8c74391-c93b-4aed-8bfe-f3c9beb89ebb",
"description": "extract column from one number matrix",
"comments": [
"Expected value is now the entire matrix, not just a single row."
],
"property": "column",
"input": {
"string": "1"
},
"expected": [[1]]
},
{
"uuid": "8f20855b-6001-4aba-b13f-c720b3a2029e",
"reimplements": "7136bdbd-b3dc-48c4-a10c-8230976d3727",
"description": "can extract column",
"comments": [
"Expected value is now the entire matrix, not just a single row."
],
"property": "column",
"input": {
"string": "1 2 3\n4 5 6\n7 8 9"
},
"expected": [
[1, 4, 7],
[2, 5, 8],
[3, 6, 9]
]
},
{
"uuid": "c89c2878-e654-4e47-b329-f089353f80b4",
"reimplements": "ad64f8d7-bba6-4182-8adf-0c14de3d0eca",
"description": "can extract column from non-square matrix with no corresponding row",
"comments": [
"Expected value is now the entire matrix, not just a single row."
],
"property": "column",
"input": {
"string": "1 2 3 4\n5 6 7 8\n9 8 7 6"
},
"expected": [
[1, 5, 9],
[2, 6, 8],
[3, 7, 7],
[4, 8, 6]
]
},
{
"uuid": "2518b9f7-3b42-4ef3-82e2-e64a2163b339",
"reimplements": "9eddfa5c-8474-440e-ae0a-f018c2a0dd89",
"description": "extract column where numbers have different widths",
"comments": [
"Expected value is now the entire matrix, not just a single row."
],
"property": "column",
"input": {
"string": "89 1903 3\n18 3 1\n9 4 800"
},
"expected": [
[89, 18, 9],
[1903, 3, 4],
[3, 1, 800]
]
}
]
}