Example #1
0
def test_16():
    assert count8(9898) == 2
Example #2
0
def test_14():
    assert count8(188) == 3
Example #3
0
def test_15():
    assert count8(88888) == 9
Example #4
0
def test_12():
    assert count8(8818181) == 5
Example #5
0
def test_13():
    assert count8(1080) == 1
Example #6
0
def test_3():
    assert count8(8088) == 4
Example #7
0
def test_11():
    assert count8(1818188) == 5
Example #8
0
def test_8():
    assert count8(2348) == 1
Example #9
0
def test_9():
    assert count8(23884) == 3
Example #10
0
def test_0():
    assert count8(8) == 1
Example #11
0
def test_7():
    assert count8(8234) == 1
Example #12
0
def test_6():
    assert count8(88788) == 6
Example #13
0
def test_5():
    assert count8(81238) == 2
Example #14
0
def test_4():
    assert count8(123) == 0
Example #15
0
def test_1():
    assert count8(818) == 2
Example #16
0
def test_10():
    assert count8(0) == 0
Example #17
0
def test_17():
    assert count8(78) == 1
Example #18
0
def test_2():
    assert count8(8818) == 4