|
1 | 1 | {
|
2 | 2 | "exercise": "bowling",
|
3 |
| - "version": "1.0.0", |
| 3 | + "version": "1.0.1", |
4 | 4 | "comments": [
|
5 | 5 | "Students should implement roll and score methods.",
|
6 | 6 | "Roll should accept a single integer.",
|
|
91 | 91 | "previous_rolls": [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10],
|
92 | 92 | "expected": 300
|
93 | 93 | }, {
|
94 |
| - "description": "rolls can not score negative points", |
| 94 | + "description": "rolls cannot score negative points", |
95 | 95 | "property": "roll",
|
96 | 96 | "previous_rolls": [],
|
97 | 97 | "roll": -1,
|
98 | 98 | "expected": {"error": "Negative roll is invalid"}
|
99 | 99 | }, {
|
100 |
| - "description": "a roll can not score more than 10 points", |
| 100 | + "description": "a roll cannot score more than 10 points", |
101 | 101 | "property": "roll",
|
102 | 102 | "previous_rolls": [],
|
103 | 103 | "roll": 11,
|
104 | 104 | "expected": {"error": "Pin count exceeds pins on the lane"}
|
105 | 105 | }, {
|
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", |
107 | 107 | "property": "roll",
|
108 | 108 | "previous_rolls": [5],
|
109 | 109 | "roll": 6,
|
110 | 110 | "expected": {"error": "Pin count exceeds pins on the lane"}
|
111 | 111 | }, {
|
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", |
113 | 113 | "property": "roll",
|
114 | 114 | "previous_rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10],
|
115 | 115 | "roll": 11,
|
116 | 116 | "expected": {"error": "Pin count exceeds pins on the lane"}
|
117 | 117 | }, {
|
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", |
119 | 119 | "property": "roll",
|
120 | 120 | "previous_rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 5],
|
121 | 121 | "roll": 6,
|
|
126 | 126 | "previous_rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 6],
|
127 | 127 | "expected": 26
|
128 | 128 | }, {
|
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", |
130 | 130 | "property": "roll",
|
131 | 131 | "previous_rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 6],
|
132 | 132 | "roll": 10,
|
133 | 133 | "expected": {"error": "Pin count exceeds pins on the lane"}
|
134 | 134 | }, {
|
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", |
136 | 136 | "property": "roll",
|
137 | 137 | "previous_rolls": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10],
|
138 | 138 | "roll": 11,
|
139 | 139 | "expected": {"error": "Pin count exceeds pins on the lane"}
|
140 | 140 | }, {
|
141 |
| - "description": "an unstarted game can not be scored", |
| 141 | + "description": "an unstarted game cannot be scored", |
142 | 142 | "property": "score",
|
143 | 143 | "previous_rolls": [],
|
144 | 144 | "expected": {"error": "Score cannot be taken until the end of the game"}
|
145 | 145 | }, {
|
146 |
| - "description": "an incomplete game can not be scored", |
| 146 | + "description": "an incomplete game cannot be scored", |
147 | 147 | "property": "score",
|
148 | 148 | "previous_rolls": [0, 0],
|
149 | 149 | "expected": {"error": "Score cannot be taken until the end of the game"}
|
|
0 commit comments