Skip to content

bowling: negative test uses positive value #1371

Closed
@yawpitch

Description

@yawpitch

In the "bowling/bowling_test.py" file there is a test that is testing a positive integer where (in the canonical data) it should be testing -1.

def test_rolls_cannot_score_negative_points(self):
    with self.assertRaisesWithMessage(ValueError):
        self.game.roll(11)

That last line should read:

        self.game.roll(-1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions