Skip to content

Commit

Permalink
Robot simulator descriptions too long (#1525)
Browse files Browse the repository at this point in the history
* Robot simulator descriptions too long

Convert long descriptions into comments per...
per #1473
  • Loading branch information
bencoman authored and SleeplessByte committed Jun 12, 2019
1 parent c7a7bbc commit 2d58f8e
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions exercises/robot-simulator/canonical-data.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"exercise": "robot-simulator",
"version": "3.1.0",
"version": "3.2.0",
"comments": [
"Some tests have two expectations: one for the position, one for the direction",
"Optionally, you can also test",
Expand All @@ -10,10 +10,10 @@
],
"cases": [
{
"description": "A robot is created with a position and a direction",
"description": "Create robot",
"cases": [
{
"description": "Robots are created with a position and direction",
"description": "at origin facing north",
"property": "create",
"input": {
"position": {
Expand All @@ -31,7 +31,7 @@
}
},
{
"description": "Negative positions are allowed",
"description": "at negative position facing south",
"property": "create",
"input": {
"position": {
Expand All @@ -51,10 +51,10 @@
]
},
{
"description": "rotates the robot's direction 90 degrees clockwise",
"description": "Rotating clockwise",
"cases": [
{
"description": "changes the direction from north to east",
"description": "changes north to east",
"property": "move",
"input": {
"position": {
Expand All @@ -73,7 +73,7 @@
}
},
{
"description": "changes the direction from east to south",
"description": "changes east to south",
"property": "move",
"input": {
"position": {
Expand All @@ -92,7 +92,7 @@
}
},
{
"description": "changes the direction from south to west",
"description": "changes south to west",
"property": "move",
"input": {
"position": {
Expand All @@ -111,7 +111,7 @@
}
},
{
"description": "changes the direction from west to north",
"description": "changes west to north",
"property": "move",
"input": {
"position": {
Expand All @@ -132,10 +132,10 @@
]
},
{
"description": "rotates the robot's direction 90 degrees counter-clockwise",
"description": "Rotating counter-clockwise",
"cases": [
{
"description": "changes the direction from north to west",
"description": "changes north to west",
"property": "move",
"input": {
"position": {
Expand All @@ -154,7 +154,7 @@
}
},
{
"description": "changes the direction from west to south",
"description": "changes west to south",
"property": "move",
"input": {
"position": {
Expand All @@ -173,7 +173,7 @@
}
},
{
"description": "changes the direction from south to east",
"description": "changes south to east",
"property": "move",
"input": {
"position": {
Expand All @@ -192,7 +192,7 @@
}
},
{
"description": "changes the direction from east to north",
"description": "changes east to north",
"property": "move",
"input": {
"position": {
Expand All @@ -213,10 +213,10 @@
]
},
{
"description": "moves the robot forward 1 space in the direction it is pointing",
"description": "Moving forward one",
"cases": [
{
"description": "increases the y coordinate one when facing north",
"description": "facing north increments Y",
"property": "move",
"input": {
"position": {
Expand All @@ -235,7 +235,7 @@
}
},
{
"description": "decreases the y coordinate by one when facing south",
"description": "facing south decrements Y",
"property": "move",
"input": {
"position": {
Expand All @@ -254,7 +254,7 @@
}
},
{
"description": "increases the x coordinate by one when facing east",
"description": "facing east increments X",
"property": "move",
"input": {
"position": {
Expand All @@ -273,7 +273,7 @@
}
},
{
"description": "decreases the x coordinate by one when facing west",
"description": "facing west decrements X",
"property": "move",
"input": {
"position": {
Expand All @@ -294,10 +294,13 @@
]
},
{
"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",
"description": "Follow series of instructions",
"comments": [ "The robot can follow a series of instructions and end up with the correct position and direction.",
"Where R = Turn Right, L = Turn Left and A = Advance"
],
"cases": [
{
"description": "instructions to move east and north from README",
"description": "moving east and north from README",
"property": "move",
"input": {
"position": {
Expand All @@ -316,7 +319,7 @@
}
},
{
"description": "instructions to move west and north",
"description": "moving west and north",
"property": "move",
"input": {
"position": {
Expand All @@ -335,7 +338,7 @@
}
},
{
"description": "instructions to move west and south",
"description": "moving west and south",
"property": "move",
"input": {
"position": {
Expand All @@ -354,7 +357,7 @@
}
},
{
"description": "instructions to move east and north",
"description": "moving east and north",
"property": "move",
"input": {
"position": {
Expand Down

0 comments on commit 2d58f8e

Please sign in to comment.