Example #1
0
def test_match_gen_ok_small_mixed_matching_placeholders():
    letters = ["a", "t", "w"]
    places = {0: "a"}
    word_length = 2
    n_candidates = wol.read_mixed_case_word_text(word_length)
    matches = sorted(set(wol.match_gen(n_candidates, letters, places)))
    assert matches == ["at"]
Example #2
0
def test_match_gen_ok_small_complete_failing_placeholders():
    letters = ["A", "T", "W"]
    places = {0: "A", 1: "W"}
    word_length = 2
    n_candidates = wol.read_mixed_case_word_text(word_length)
    matches = sorted(set(wol.match_gen(n_candidates, letters, places)))
    assert matches == []
Example #3
0
def test_match_gen_ok_minimal():
    letters = ["a", "t", "w"]
    word_length = 2
    n_candidates = wol.read_mixed_case_word_text(word_length)
    matches = sorted(set(wol.match_gen(n_candidates, letters)))
    assert matches == ["at"]