Esempio n. 1
0
def test_substrings_empty():
    assert list(substrings('')) == []
Esempio n. 2
0
def test_substrings_single():
    assert list(substrings('a')) == ['a']
Esempio n. 3
0
def test_substrings():
    assert list(substrings('abc')) == [
        'a', 'ab', 'abc',
        'b', 'bc',
        'c',
    ]