tests.test_scoring_guess

Validates the Gherkin file features/scoring_guess.feature:

Feature: Scoring guesses

As a Wordle game I need to tell the player how good their guess is In order to help them find the proper answer

Module Contents

Functions

test_perfect_guess()

Scenario: Perfect guess gives perfect score

test_no_common_character()

Scenario: No character in common

test_wrong_place()

Scenario: Character in wrong place

test_generic_score(answer, our_guess, expected_score)

Scenario Outline: Scoring guesses

tests.test_scoring_guess.test_perfect_guess()[source]

Scenario: Perfect guess gives perfect score

tests.test_scoring_guess.test_no_common_character()[source]

Scenario: No character in common

tests.test_scoring_guess.test_wrong_place()[source]

Scenario: Character in wrong place

tests.test_scoring_guess.test_generic_score(answer, our_guess, expected_score)[source]

Scenario Outline: Scoring guesses