import pytest

from adagrams.game import score_word

def test_score_word_accurate():
    # Assert
    assert score_word("A") == 1
    assert score_word("DOG") == 5
    assert score_word("WHIMSY") == 17

def test_score_word_accurate_ignores_case():
    # Assert
    assert score_word("a") == 1
    assert score_word("dog") == 5
    assert score_word("wHiMsY") == 17

def test_score_zero_for_empty():
    # Assert
    assert score_word("") == 0

def test_score_extra_points_for_seven_or_longer():
    # Assert
    assert score_word("XXXXXXX") == 64
    assert score_word("XXXXXXXX") == 72
    assert score_word("XXXXXXXXX") == 80
    