def test_binaryGap51712():
    assert solution(51712) == 2
    
def test_binaryGap6():
    assert solution(6) == 0
def test_binaryGap328():
    assert solution(328) == 2
def test_binaryGap32():
    assert solution(32) == 0
def test_binaryGap1041():
    assert solution(1041) == 5
def test_binaryGap20():
    assert solution(20) == 1
def test_binaryGap15():
    assert solution(15) == 0
def test_binaryGap9():
    assert solution(9) == 2