Skip to content

Commit 5cab22d

Browse files
author
Jegors Čemisovs
committed
Update expected results format in canonical-data.json
In the 'exercises/mazy-mice/canonical-data.json' file, the results format for each test case has been updated. Instead of providing an expected result as a string, a boolean or an object structure is used. The change is performed to improve the test result validation process. Boolean values help to clearly identify the pass/fail status, while the object returns the expected maze dimensions, allowing for more detailed automated test result evaluations.
1 parent 45bb301 commit 5cab22d

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

exercises/mazy-mice/canonican-data.json

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
"rows": 6,
2828
"cols": 18
2929
},
30-
"expected": "the generated maze has 13 lines and 37 columns"
30+
"expected": {
31+
"width": 37,
32+
"height": 13
33+
}
3134
},
3235
{
3336
"uuid": "4782cea6-a1e3-48b2-b825-a805890b5118",
@@ -37,7 +40,7 @@
3740
"rows": 6,
3841
"cols": 18
3942
},
40-
"expected": "the generated maze has only valid characters"
43+
"expected": true
4144
},
4245
{
4346
"uuid": "1433a6ff-d18e-4ade-b37c-40b286218f07",
@@ -47,7 +50,7 @@
4750
"rows": 6,
4851
"cols": 18
4952
},
50-
"expected": "the generated maze has a single entrance on the left side"
53+
"expected": true
5154
},
5255
{
5356
"uuid": "a0be2a1c-4ec1-412a-8a30-36d6b1d96df2",
@@ -57,7 +60,7 @@
5760
"rows": 6,
5861
"cols": 18
5962
},
60-
"expected": "the generated maze has a single exit on the right side"
63+
"expected": true
6164
},
6265
{
6366
"uuid": "1f7f50f5-4a3a-4e96-8c5e-92b284fd8b3b",
@@ -67,7 +70,7 @@
6770
"rows": 5,
6871
"cols": 5
6972
},
70-
"expected": "The maze is perfect."
73+
"expected": true
7174
},
7275
{
7376
"uuid": "2a8e8f63-7e89-4c9a-8d1f-1439a7d9a3e9",
@@ -77,7 +80,7 @@
7780
"rows": 5,
7881
"cols": 10
7982
},
80-
"expected": "The maze is perfect."
83+
"expected": true
8184
},
8285
{
8386
"uuid": "3b6e8d5c-2a8d-4f03-9e7a-6c8f2a4e4f88",
@@ -87,7 +90,7 @@
8790
"rows": 10,
8891
"cols": 10
8992
},
90-
"expected": "The maze is perfect."
93+
"expected": true
9194
},
9295
{
9396
"uuid": "4c7f6e5b-5e45-4a8d-8e8a-7f3e3e4e5f99",
@@ -97,7 +100,7 @@
97100
"rows": 10,
98101
"cols": 20
99102
},
100-
"expected": "The maze is perfect."
103+
"expected": true
101104
},
102105
{
103106
"uuid": "5d8f7f6c-6e46-4a9d-8e8b-8f3f3f4e6f00",
@@ -107,7 +110,7 @@
107110
"rows": 20,
108111
"cols": 10
109112
},
110-
"expected": "The maze is perfect."
113+
"expected": true
111114
},
112115
{
113116
"uuid": "6e9f8f7d-7e47-4a9e-8e8c-9f3f3f4e7f01",
@@ -117,7 +120,7 @@
117120
"rows": 20,
118121
"cols": 100
119122
},
120-
"expected": "The maze is perfect."
123+
"expected": true
121124
},
122125
{
123126
"uuid": "7fa0a0b1-8e48-4a9f-8e8d-af4f4f5e8f02",
@@ -127,7 +130,7 @@
127130
"rows": 100,
128131
"cols": 100
129132
},
130-
"expected": "The maze is perfect."
133+
"expected": true
131134
},
132135
{
133136
"uuid": "8fb1c1d2-9e49-4aa0-8e8e-bf5f5f6e9f03",
@@ -138,7 +141,7 @@
138141
"cols": 50,
139142
"seed": 2342342
140143
},
141-
"expected": "The maze is perfect."
144+
"expected": true
142145
},
143146
{
144147
"uuid": "9fc2d2e3-af4a-4ab1-8e8f-cf6f6f7eaf04",
@@ -148,7 +151,7 @@
148151
"rows": 8,
149152
"cols": 16
150153
},
151-
"expected": "The random maze is generated."
154+
"expected": true
152155
},
153156
{
154157
"uuid": "a0d3e4f4-b05b-4ac2-8e8a-df7f7f8eaf05",
@@ -159,7 +162,7 @@
159162
"cols": 16,
160163
"seed": 123
161164
},
162-
"expected": "The same maze is generated."
165+
"expected": true
163166
}
164167
]
165168
}

0 commit comments

Comments
 (0)