Example #1
0
def test_find_word_2(context2):
    finder = WordFinder(context2)

    options = finder.find_slice(0, 2)
    assert len(options) == 1
    assert options[0].word == '-'

    options = finder.find_slice(1, 1)
    assert len(options) == 1
    assert options[0].word == '-'
Example #2
0
def test_find_word(context1):
    finder = WordFinder(context1)

    options = finder.find_slice(0, 16)
    assert options
    assert len(options) == 2
    assert options[0].word == '......-...-..---'
    assert options[1].word == '......-...-..'