Skip to content

Commit c08eef3

Browse files
authored
Merge pull request #716 from exercism/problem_specification_832
Bowling: New descriptions from Canonical
2 parents 5d23682 + af2500d commit c08eef3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

exercises/bowling/bowling_test.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'minitest/autorun'
22
require_relative 'bowling'
33

4-
# Common test data version: 1.0.0 3cf5eb9
4+
# Common test data version: 1.0.1 26e345e
55
class BowlingTest < Minitest::Test
66
def setup
77
@game = Game.new
@@ -95,39 +95,39 @@ def test_all_strikes_is_a_perfect_game
9595
assert_equal 300, @game.score
9696
end
9797

98-
def test_rolls_can_not_score_negative_points
98+
def test_rolls_cannot_score_negative_points
9999
skip
100100
record([])
101101
assert_raises Game::BowlingError do
102102
@game.roll(-1)
103103
end
104104
end
105105

106-
def test_a_roll_can_not_score_more_than_10_points
106+
def test_a_roll_cannot_score_more_than_10_points
107107
skip
108108
record([])
109109
assert_raises Game::BowlingError do
110110
@game.roll(11)
111111
end
112112
end
113113

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
115115
skip
116116
record([5])
117117
assert_raises Game::BowlingError do
118118
@game.roll(6)
119119
end
120120
end
121121

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
123123
skip
124124
record([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10])
125125
assert_raises Game::BowlingError do
126126
@game.roll(11)
127127
end
128128
end
129129

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
131131
skip
132132
record([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 5])
133133
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
141141
assert_equal 26, @game.score
142142
end
143143

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
145145
skip
146146
record([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 6])
147147
assert_raises Game::BowlingError do
148148
@game.roll(10)
149149
end
150150
end
151151

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
153153
skip
154154
record([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10])
155155
assert_raises Game::BowlingError do
156156
@game.roll(11)
157157
end
158158
end
159159

160-
def test_an_unstarted_game_can_not_be_scored
160+
def test_an_unstarted_game_cannot_be_scored
161161
skip
162162
record([])
163163
assert_raises Game::BowlingError do
164164
@game.score
165165
end
166166
end
167167

168-
def test_an_incomplete_game_can_not_be_scored
168+
def test_an_incomplete_game_cannot_be_scored
169169
skip
170170
record([0, 0])
171171
assert_raises Game::BowlingError do

0 commit comments

Comments
 (0)