tests.test_track_guess_number

Validates the Gherkin file features/track_guesses.feature

Feature: Playing a round

As a Wordle game I need to track how many guesses were already given, stating wins/losses In order to play the game

Module Contents

Functions

test_first_guess_allowed()

Scenario: First guess is allowed

test_sixth_guess_allowed()

Scenario: Fifth guess still allowed

test_seventh_guess_fails_game()

Scenario: Sixth failed guess is game over

test_winning_guess_wins()

Scenario: Winning guess

test_invalid_guess_not_counted()

Scenario: Invalid guess isn't counted

tests.test_track_guess_number.test_first_guess_allowed()[source]

Scenario: First guess is allowed

tests.test_track_guess_number.test_sixth_guess_allowed()[source]

Scenario: Fifth guess still allowed

tests.test_track_guess_number.test_seventh_guess_fails_game()[source]

Scenario: Sixth failed guess is game over

tests.test_track_guess_number.test_winning_guess_wins()[source]

Scenario: Winning guess

tests.test_track_guess_number.test_invalid_guess_not_counted()[source]

Scenario: Invalid guess isn’t counted