示例#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