From af2500db2da31d8996741570b605423a686131cf Mon Sep 17 00:00:00 2001 From: kotp Date: Sun, 27 Aug 2017 18:55:03 -0400 Subject: [PATCH] New descriptions from Canonical re: exercism/problem-specifications#832 --- exercises/bowling/bowling_test.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/exercises/bowling/bowling_test.rb b/exercises/bowling/bowling_test.rb index 8bc4ad83e7..dab1c4e4d8 100644 --- a/exercises/bowling/bowling_test.rb +++ b/exercises/bowling/bowling_test.rb @@ -1,7 +1,7 @@ require 'minitest/autorun' require_relative 'bowling' -# Common test data version: 1.0.0 3cf5eb9 +# Common test data version: 1.0.1 26e345e class BowlingTest < Minitest::Test def setup @game = Game.new @@ -95,7 +95,7 @@ def test_all_strikes_is_a_perfect_game assert_equal 300, @game.score end - def test_rolls_can_not_score_negative_points + def test_rolls_cannot_score_negative_points skip record([]) assert_raises Game::BowlingError do @@ -103,7 +103,7 @@ def test_rolls_can_not_score_negative_points end end - def test_a_roll_can_not_score_more_than_10_points + def test_a_roll_cannot_score_more_than_10_points skip record([]) assert_raises Game::BowlingError do @@ -111,7 +111,7 @@ def test_a_roll_can_not_score_more_than_10_points end end - def test_two_rolls_in_a_frame_can_not_score_more_than_10_points + def test_two_rolls_in_a_frame_cannot_score_more_than_10_points skip record([5]) assert_raises Game::BowlingError do @@ -119,7 +119,7 @@ def test_two_rolls_in_a_frame_can_not_score_more_than_10_points end end - def test_bonus_roll_after_a_strike_in_the_last_frame_can_not_score_more_than_10_points + def test_bonus_roll_after_a_strike_in_the_last_frame_cannot_score_more_than_10_points skip record([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10]) assert_raises Game::BowlingError do @@ -127,7 +127,7 @@ def test_bonus_roll_after_a_strike_in_the_last_frame_can_not_score_more_than_10_ end end - def test_two_bonus_rolls_after_a_strike_in_the_last_frame_can_not_score_more_than_10_points + def test_two_bonus_rolls_after_a_strike_in_the_last_frame_cannot_score_more_than_10_points skip record([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 5]) assert_raises Game::BowlingError do @@ -141,7 +141,7 @@ def test_two_bonus_rolls_after_a_strike_in_the_last_frame_can_score_more_than_10 assert_equal 26, @game.score end - 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 + 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 skip record([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 6]) assert_raises Game::BowlingError do @@ -149,7 +149,7 @@ def test_the_second_bonus_rolls_after_a_strike_in_the_last_frame_can_not_be_a_st end end - def test_second_bonus_roll_after_a_strike_in_the_last_frame_can_not_score_than_10_points + def test_second_bonus_roll_after_a_strike_in_the_last_frame_cannot_score_more_than_10_points skip record([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10]) assert_raises Game::BowlingError do @@ -157,7 +157,7 @@ def test_second_bonus_roll_after_a_strike_in_the_last_frame_can_not_score_than_1 end end - def test_an_unstarted_game_can_not_be_scored + def test_an_unstarted_game_cannot_be_scored skip record([]) assert_raises Game::BowlingError do @@ -165,7 +165,7 @@ def test_an_unstarted_game_can_not_be_scored end end - def test_an_incomplete_game_can_not_be_scored + def test_an_incomplete_game_cannot_be_scored skip record([0, 0]) assert_raises Game::BowlingError do