1
1
require 'minitest/autorun'
2
2
require_relative 'bowling'
3
3
4
- # Common test data version: 1.0.0 3cf5eb9
4
+ # Common test data version: 1.0.1 26e345e
5
5
class BowlingTest < Minitest ::Test
6
6
def setup
7
7
@game = Game . new
@@ -95,39 +95,39 @@ def test_all_strikes_is_a_perfect_game
95
95
assert_equal 300 , @game . score
96
96
end
97
97
98
- def test_rolls_can_not_score_negative_points
98
+ def test_rolls_cannot_score_negative_points
99
99
skip
100
100
record ( [ ] )
101
101
assert_raises Game ::BowlingError do
102
102
@game . roll ( -1 )
103
103
end
104
104
end
105
105
106
- def test_a_roll_can_not_score_more_than_10_points
106
+ def test_a_roll_cannot_score_more_than_10_points
107
107
skip
108
108
record ( [ ] )
109
109
assert_raises Game ::BowlingError do
110
110
@game . roll ( 11 )
111
111
end
112
112
end
113
113
114
- def test_two_rolls_in_a_frame_can_not_score_more_than_10_points
114
+ def test_two_rolls_in_a_frame_cannot_score_more_than_10_points
115
115
skip
116
116
record ( [ 5 ] )
117
117
assert_raises Game ::BowlingError do
118
118
@game . roll ( 6 )
119
119
end
120
120
end
121
121
122
- def test_bonus_roll_after_a_strike_in_the_last_frame_can_not_score_more_than_10_points
122
+ def test_bonus_roll_after_a_strike_in_the_last_frame_cannot_score_more_than_10_points
123
123
skip
124
124
record ( [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 10 ] )
125
125
assert_raises Game ::BowlingError do
126
126
@game . roll ( 11 )
127
127
end
128
128
end
129
129
130
- def test_two_bonus_rolls_after_a_strike_in_the_last_frame_can_not_score_more_than_10_points
130
+ def test_two_bonus_rolls_after_a_strike_in_the_last_frame_cannot_score_more_than_10_points
131
131
skip
132
132
record ( [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 10 , 5 ] )
133
133
assert_raises Game ::BowlingError do
@@ -141,31 +141,31 @@ def test_two_bonus_rolls_after_a_strike_in_the_last_frame_can_score_more_than_10
141
141
assert_equal 26 , @game . score
142
142
end
143
143
144
- def test_the_second_bonus_rolls_after_a_strike_in_the_last_frame_can_not_be_a_strike_if_the_first_one_is_not_a_strike
144
+ def test_the_second_bonus_rolls_after_a_strike_in_the_last_frame_cannot_be_a_strike_if_the_first_one_is_not_a_strike
145
145
skip
146
146
record ( [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 10 , 6 ] )
147
147
assert_raises Game ::BowlingError do
148
148
@game . roll ( 10 )
149
149
end
150
150
end
151
151
152
- def test_second_bonus_roll_after_a_strike_in_the_last_frame_can_not_score_than_10_points
152
+ def test_second_bonus_roll_after_a_strike_in_the_last_frame_cannot_score_more_than_10_points
153
153
skip
154
154
record ( [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 10 , 10 ] )
155
155
assert_raises Game ::BowlingError do
156
156
@game . roll ( 11 )
157
157
end
158
158
end
159
159
160
- def test_an_unstarted_game_can_not_be_scored
160
+ def test_an_unstarted_game_cannot_be_scored
161
161
skip
162
162
record ( [ ] )
163
163
assert_raises Game ::BowlingError do
164
164
@game . score
165
165
end
166
166
end
167
167
168
- def test_an_incomplete_game_can_not_be_scored
168
+ def test_an_incomplete_game_cannot_be_scored
169
169
skip
170
170
record ( [ 0 , 0 ] )
171
171
assert_raises Game ::BowlingError do
0 commit comments