Skip to content

Commit 2d58f8e

Browse files
bencomanSleeplessByte
authored andcommitted
Robot simulator descriptions too long (#1525)
* Robot simulator descriptions too long Convert long descriptions into comments per... per #1473
1 parent c7a7bbc commit 2d58f8e

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

exercises/robot-simulator/canonical-data.json

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"exercise": "robot-simulator",
3-
"version": "3.1.0",
3+
"version": "3.2.0",
44
"comments": [
55
"Some tests have two expectations: one for the position, one for the direction",
66
"Optionally, you can also test",
@@ -10,10 +10,10 @@
1010
],
1111
"cases": [
1212
{
13-
"description": "A robot is created with a position and a direction",
13+
"description": "Create robot",
1414
"cases": [
1515
{
16-
"description": "Robots are created with a position and direction",
16+
"description": "at origin facing north",
1717
"property": "create",
1818
"input": {
1919
"position": {
@@ -31,7 +31,7 @@
3131
}
3232
},
3333
{
34-
"description": "Negative positions are allowed",
34+
"description": "at negative position facing south",
3535
"property": "create",
3636
"input": {
3737
"position": {
@@ -51,10 +51,10 @@
5151
]
5252
},
5353
{
54-
"description": "rotates the robot's direction 90 degrees clockwise",
54+
"description": "Rotating clockwise",
5555
"cases": [
5656
{
57-
"description": "changes the direction from north to east",
57+
"description": "changes north to east",
5858
"property": "move",
5959
"input": {
6060
"position": {
@@ -73,7 +73,7 @@
7373
}
7474
},
7575
{
76-
"description": "changes the direction from east to south",
76+
"description": "changes east to south",
7777
"property": "move",
7878
"input": {
7979
"position": {
@@ -92,7 +92,7 @@
9292
}
9393
},
9494
{
95-
"description": "changes the direction from south to west",
95+
"description": "changes south to west",
9696
"property": "move",
9797
"input": {
9898
"position": {
@@ -111,7 +111,7 @@
111111
}
112112
},
113113
{
114-
"description": "changes the direction from west to north",
114+
"description": "changes west to north",
115115
"property": "move",
116116
"input": {
117117
"position": {
@@ -132,10 +132,10 @@
132132
]
133133
},
134134
{
135-
"description": "rotates the robot's direction 90 degrees counter-clockwise",
135+
"description": "Rotating counter-clockwise",
136136
"cases": [
137137
{
138-
"description": "changes the direction from north to west",
138+
"description": "changes north to west",
139139
"property": "move",
140140
"input": {
141141
"position": {
@@ -154,7 +154,7 @@
154154
}
155155
},
156156
{
157-
"description": "changes the direction from west to south",
157+
"description": "changes west to south",
158158
"property": "move",
159159
"input": {
160160
"position": {
@@ -173,7 +173,7 @@
173173
}
174174
},
175175
{
176-
"description": "changes the direction from south to east",
176+
"description": "changes south to east",
177177
"property": "move",
178178
"input": {
179179
"position": {
@@ -192,7 +192,7 @@
192192
}
193193
},
194194
{
195-
"description": "changes the direction from east to north",
195+
"description": "changes east to north",
196196
"property": "move",
197197
"input": {
198198
"position": {
@@ -213,10 +213,10 @@
213213
]
214214
},
215215
{
216-
"description": "moves the robot forward 1 space in the direction it is pointing",
216+
"description": "Moving forward one",
217217
"cases": [
218218
{
219-
"description": "increases the y coordinate one when facing north",
219+
"description": "facing north increments Y",
220220
"property": "move",
221221
"input": {
222222
"position": {
@@ -235,7 +235,7 @@
235235
}
236236
},
237237
{
238-
"description": "decreases the y coordinate by one when facing south",
238+
"description": "facing south decrements Y",
239239
"property": "move",
240240
"input": {
241241
"position": {
@@ -254,7 +254,7 @@
254254
}
255255
},
256256
{
257-
"description": "increases the x coordinate by one when facing east",
257+
"description": "facing east increments X",
258258
"property": "move",
259259
"input": {
260260
"position": {
@@ -273,7 +273,7 @@
273273
}
274274
},
275275
{
276-
"description": "decreases the x coordinate by one when facing west",
276+
"description": "facing west decrements X",
277277
"property": "move",
278278
"input": {
279279
"position": {
@@ -294,10 +294,13 @@
294294
]
295295
},
296296
{
297-
"description": "Where R = Turn Right, L = Turn Left and A = Advance, the robot can follow a series of instructions and end up with the correct position and direction",
297+
"description": "Follow series of instructions",
298+
"comments": [ "The robot can follow a series of instructions and end up with the correct position and direction.",
299+
"Where R = Turn Right, L = Turn Left and A = Advance"
300+
],
298301
"cases": [
299302
{
300-
"description": "instructions to move east and north from README",
303+
"description": "moving east and north from README",
301304
"property": "move",
302305
"input": {
303306
"position": {
@@ -316,7 +319,7 @@
316319
}
317320
},
318321
{
319-
"description": "instructions to move west and north",
322+
"description": "moving west and north",
320323
"property": "move",
321324
"input": {
322325
"position": {
@@ -335,7 +338,7 @@
335338
}
336339
},
337340
{
338-
"description": "instructions to move west and south",
341+
"description": "moving west and south",
339342
"property": "move",
340343
"input": {
341344
"position": {
@@ -354,7 +357,7 @@
354357
}
355358
},
356359
{
357-
"description": "instructions to move east and north",
360+
"description": "moving east and north",
358361
"property": "move",
359362
"input": {
360363
"position": {

0 commit comments

Comments
 (0)