Skip to content

Commit 911cfc1

Browse files
committed
[Bowling] Fix case descriptions
Make the usage of _can not_ and _cannot_ consistent throughout the file. Also add a missing `more` in one of the descriptions.
1 parent c4d8d95 commit 911cfc1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

exercises/bowling/canonical-data.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"exercise": "bowling",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"comments": [
55
"Students should implement roll and score methods.",
66
"Roll should accept a single integer.",
@@ -91,31 +91,31 @@
9191
"previous_rolls": [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10],
9292
"expected": 300
9393
}, {
94-
"description": "rolls can not score negative points",
94+
"description": "rolls cannot score negative points",
9595
"property": "roll",
9696
"previous_rolls": [],
9797
"roll": -1,
9898
"expected": {"error": "Negative roll is invalid"}
9999
}, {
100-
"description": "a roll can not score more than 10 points",
100+
"description": "a roll cannot score more than 10 points",
101101
"property": "roll",
102102
"previous_rolls": [],
103103
"roll": 11,
104104
"expected": {"error": "Pin count exceeds pins on the lane"}
105105
}, {
106-
"description": "two rolls in a frame can not score more than 10 points",
106+
"description": "two rolls in a frame cannot score more than 10 points",
107107
"property": "roll",
108108
"previous_rolls": [5],
109109
"roll": 6,
110110
"expected": {"error": "Pin count exceeds pins on the lane"}
111111
}, {
112-
"description": "bonus roll after a strike in the last frame can not score more than 10 points",
112+
"description": "bonus roll after a strike in the last frame cannot score more than 10 points",
113113
"property": "roll",
114114
"previous_rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10],
115115
"roll": 11,
116116
"expected": {"error": "Pin count exceeds pins on the lane"}
117117
}, {
118-
"description": "two bonus rolls after a strike in the last frame can not score more than 10 points",
118+
"description": "two bonus rolls after a strike in the last frame cannot score more than 10 points",
119119
"property": "roll",
120120
"previous_rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 5],
121121
"roll": 6,
@@ -126,24 +126,24 @@
126126
"previous_rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 6],
127127
"expected": 26
128128
}, {
129-
"description": "the second bonus rolls after a strike in the last frame can not be a strike if the first one is not a strike",
129+
"description": "the second bonus rolls after a strike in the last frame cannot be a strike if the first one is not a strike",
130130
"property": "roll",
131131
"previous_rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 6],
132132
"roll": 10,
133133
"expected": {"error": "Pin count exceeds pins on the lane"}
134134
}, {
135-
"description": "second bonus roll after a strike in the last frame can not score than 10 points",
135+
"description": "second bonus roll after a strike in the last frame cannot score more than 10 points",
136136
"property": "roll",
137137
"previous_rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10],
138138
"roll": 11,
139139
"expected": {"error": "Pin count exceeds pins on the lane"}
140140
}, {
141-
"description": "an unstarted game can not be scored",
141+
"description": "an unstarted game cannot be scored",
142142
"property": "score",
143143
"previous_rolls": [],
144144
"expected": {"error": "Score cannot be taken until the end of the game"}
145145
}, {
146-
"description": "an incomplete game can not be scored",
146+
"description": "an incomplete game cannot be scored",
147147
"property": "score",
148148
"previous_rolls": [0, 0],
149149
"expected": {"error": "Score cannot be taken until the end of the game"}

0 commit comments

Comments
 (0)