def test_repeated_reduced(): s = 'aBbBbAa' assert day5.reduce(s) == 'a'
def test_example(): s = 'dabAcCaCBAcCcaDA' assert day5.reduce(s) == 'dabCBAcaDA'
def test_reduce_possible(): s = 'aBb' assert day5.reduce(s) == 'a'
def test2(): input = 'abBA' remainder = day5.reduce(input) assert len(remainder) == 0
def test5(): input = 'dabAcCaCBAcCcaDA' remainder = day5.reduce(input) assert len(remainder) == 10
def test4(): input = 'aabAAb' remainder = day5.reduce(input) assert len(remainder) == 6
def test3(): input = 'abAB' remainder = day5.reduce(input) assert len(remainder) == 4