def test_generate_huge(): words = split_to_words(open('/usr/share/fortune/cookie').read()) first, other = make_char_chain(words, 3) lengths = make_lengths_seq(words) for l in lengths[:1000]: print generate_word(first, other, l, 3), print assert False
def test_breaker(): result = split_to_words('Seq of words') assert result == ['Seq', 'of', 'words']