예제 #1
0
def test_getMaxConsectiveOnes_tc2():
    assert bin_num.getMaxConsectiveOnes(bin(2002)[2:]) == 5
예제 #2
0
def test_getMaxConsectiveOnes_tc5():
    assert bin_num.getMaxConsectiveOnes(bin(124587)[2:]) == 4
예제 #3
0
def test_getMaxConsectiveOnes():
    assert bin_num.getMaxConsectiveOnes(bin(13)[2:]) == 2
예제 #4
0
def test_getMaxConsectiveOnes_tc4():
    assert bin_num.getMaxConsectiveOnes(bin(99999)[2:]) == 5