def test_1(self): pattern = [1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1] assert part2.apply_rules(pattern) == 4
def test_0(self): pattern0 = [1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1] assert part2.apply_rules(pattern0) == 3