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