def test_hadder5(): assert halfadder('12131415') == 4
def test_hadder4(): assert halfadder('123123') == 12
def test_hadder3(): assert halfadder('123425') == 4
def test_hadder(): assert halfadder('1212') == 6
def test_hadder2(): assert halfadder('1221') == 0