Пример #1
0
def test_single_item_list():
    assert solve('5') == 5
Пример #2
0
def test_hand():
    assert solve(3312349912343) == 3 + 9 + 3
Пример #3
0
def test_empty_list():
    assert solve('') == 0
Пример #4
0
def test_works_with_ints():
    assert solve(91212129) == 9
Пример #5
0
def test_only_circular_match():
    assert solve('91212129') == 9
Пример #6
0
def test_no_equal_digits():
    assert solve('1234') == 0
Пример #7
0
def test_all_equal_digits():
    assert solve('1111') == 4
Пример #8
0
def test_simple():
    assert solve('1122') == 3