-
-
Notifications
You must be signed in to change notification settings - Fork 551
/
Copy pathcanonican-data.json
168 lines (168 loc) · 4.86 KB
/
canonican-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
{
"exercise": "maze",
"comments": [
"The following checks should be considered: ",
" ",
"The dimensions of the maze are correct: ",
" - the number of lines is equal to rows * 2 + 1 ",
" - the width of each line in characters is equal to columns * 2 + 1",
"The maze contains only valid characters. ",
"The maze has a single entrance on the left side. ",
"The maze has a single exit on the right side. ",
"The maze is perfect: ",
" - there is a single path from the entrance to the exit ",
" - there are no loops in the maze ",
" - there are no inaccessible sections in the maze ",
"The maze is random: ",
" - the maze is different each time it is generated ",
" - the maze is the same if the same seed is used ",
" - two mazes with different seeds should not be equal "
],
"cases": [
{
"uuid": "e01f6db6-613c-4b55-9c09-e87edc0b04dd",
"description": "The dimensions of the maze are correct",
"property": "generateMaze",
"input": {
"rows": 6,
"cols": 18
},
"expected": {
"width": 37,
"height": 13
}
},
{
"uuid": "4782cea6-a1e3-48b2-b825-a805890b5118",
"description": "The maze contains only valid characters",
"property": "generateMaze",
"input": {
"rows": 6,
"cols": 18
},
"expected": true
},
{
"uuid": "1433a6ff-d18e-4ade-b37c-40b286218f07",
"description": "The maze has a single entrance on the left side",
"property": "generateMaze",
"input": {
"rows": 6,
"cols": 18
},
"expected": true
},
{
"uuid": "a0be2a1c-4ec1-412a-8a30-36d6b1d96df2",
"description": "The maze has a single exit on the right side",
"property": "generateMaze",
"input": {
"rows": 6,
"cols": 18
},
"expected": true
},
{
"uuid": "1f7f50f5-4a3a-4e96-8c5e-92b284fd8b3b",
"description": "the smallest square maze is perfect",
"property": "generateMaze",
"input": {
"rows": 5,
"cols": 5
},
"expected": true
},
{
"uuid": "2a8e8f63-7e89-4c9a-8d1f-1439a7d9a3e9",
"description": "the small rectangular maze is perfect",
"property": "generateMaze",
"input": {
"rows": 5,
"cols": 10
},
"expected": true
},
{
"uuid": "3b6e8d5c-2a8d-4f03-9e7a-6c8f2a4e4f88",
"description": "the square maze is perfect",
"property": "generateMaze",
"input": {
"rows": 10,
"cols": 10
},
"expected": true
},
{
"uuid": "4c7f6e5b-5e45-4a8d-8e8a-7f3e3e4e5f99",
"description": "the large rectangular maze is perfect",
"property": "generateMaze",
"input": {
"rows": 10,
"cols": 20
},
"expected": true
},
{
"uuid": "5d8f7f6c-6e46-4a9d-8e8b-8f3f3f4e6f00",
"description": "the rectangular maze with aspect 2:1 is perfect",
"property": "generateMaze",
"input": {
"rows": 20,
"cols": 10
},
"expected": true
},
{
"uuid": "6e9f8f7d-7e47-4a9e-8e8c-9f3f3f4e7f01",
"description": "the huge rectangular maze is perfect",
"property": "generateMaze",
"input": {
"rows": 20,
"cols": 100
},
"expected": true
},
{
"uuid": "7fa0a0b1-8e48-4a9f-8e8d-af4f4f5e8f02",
"description": "the huge square maze is perfect",
"property": "generateMaze",
"input": {
"rows": 100,
"cols": 100
},
"expected": true
},
{
"uuid": "8fb1c1d2-9e49-4aa0-8e8e-bf5f5f6e9f03",
"description": "if the seed parameter is specified, the perfect maze generated",
"property": "generateMaze",
"input": {
"rows": 50,
"cols": 50,
"seed": 2342342
},
"expected": true
},
{
"uuid": "9fc2d2e3-af4a-4ab1-8e8f-cf6f6f7eaf04",
"description": "if the seed parameter is omitted, random mazes should be generated",
"property": "generateMaze",
"input": {
"rows": 8,
"cols": 16
},
"expected": true
},
{
"uuid": "a0d3e4f4-b05b-4ac2-8e8a-df7f7f8eaf05",
"description": "if the seed parameter is specified, the same maze should be generated",
"property": "generateMaze",
"input": {
"rows": 8,
"cols": 16,
"seed": 123
},
"expected": true
}
]
}