from lettercase import LetterCase, detect_case


def test_detect_letter_case():
    assert detect_case("test_one") == {LetterCase.SNAKE}
    assert detect_case("testOne") == {LetterCase.DROMEDARY}

    assert detect_case("____testOne") == {LetterCase.DROMEDARY}

    assert detect_case("Sneaky_Darwin_Case") == {LetterCase.DARWIN}

    assert detect_case("SCREAMING_CASE") == {LetterCase.SCREAMING_SNAKE}

    assert detect_case("ambiguous") == {LetterCase.SNAKE, LetterCase.DROMEDARY}
