def main(): Day0.run() Day1.run() Day2.run() Day3.run() Day4.run() Day5.run() Day6.run() Day7.run() Day8.run() Day9.run() Day10.run() Day11.run() Day12.run() Day13.run() Day14.run() Day15.run() Day16.run() Day17.run() Day18.run() Day19.run()
def test_is_valid_abbceffg(self): self.assertFalse(Day11.is_valid_password("abbceffg"))
def test_is_valid_hijklmmn(self): self.assertFalse(Day11.is_valid_password("hijklmmn"))
def test_next_after_ghijklmn(self): self.assertEqual("ghjaabcc", Day11.next_password("ghijklmn"))
def test_next_after_abcdefgh(self): self.assertEqual("abcdffaa", Day11.next_password("abcdefgh"))
def test_is_valid_ghjaabcc(self): self.assertTrue(Day11.is_valid_password("ghjaabcc"))
def test_is_valid_abcdffaa(self): self.assertTrue(Day11.is_valid_password("abcdffaa"))