Пример #1
0
def test_calcualte_score_negative():
    score = calculate_score(5)
    assert score == 0
Пример #2
0
def test_calcualte_score_positive():
    score = calculate_score(1)
    assert score == 3
Пример #3
0
def test_2_duplicate_letters():
    assert hangman.calculate_score(1, "oddo") == 2
Пример #4
0
def test_3_letter_word_2_duplicate_letters():
    assert hangman.calculate_score(6, "add") == 12
Пример #5
0
def test_2_letter_word_score_greater_than_1():
    assert hangman.calculate_score(4, "ad") == 8
Пример #6
0
def test_no_duplicate_letters_score_greater_than_1():
    assert hangman.calculate_score(3, "castle") == 18
Пример #7
0
def test_no_duplicate_letters():
    assert hangman.calculate_score(1, "castle") == 6