Example #1
0
    def test_23(self):
        sample_data = day23.get_data(day23.SAMPLE_PATH)
        self.assertEqual(day23.part_1(sample_data), "67384529")
        self.assertEqual(day23.part_2(sample_data), "149245887792")

        challenge_data = day23.get_data(day23.INPUT_PATH)
        self.assertEqual(day23.part_1(challenge_data), "24798635")
        self.assertEqual(day23.part_2(challenge_data), "12757828710")
Example #2
0
    def test_23(self):
        sample_data_1 = day23.get_data(day23.SAMPLE_PATH)
        self.assertEqual(day23.part_1(*sample_data_1), 12521)
        sample_data_2 = day23.get_data(day23.SAMPLE_PATH, True)
        self.assertEqual(day23.part_2(*sample_data_2), 44169)

        challenge_data_1 = day23.get_data(day23.INPUT_PATH)
        self.assertEqual(day23.part_1(*challenge_data_1), 12240)
        challenge_data_2 = day23.get_data(day23.INPUT_PATH, True)
        self.assertEqual(day23.part_2(*challenge_data_2), 44618)
Example #3
0
 def test_with_input(self):
     self.assertEqual(part_1(INPUT, 100), "29385746")
Example #4
0
 def test_with_example_100_moves(self):
     self.assertEqual(part_1(EXAMPLE, 100), "67384529")
Example #5
0
 def test_with_example_10_moves(self):
     self.assertEqual(part_1(EXAMPLE, 10), "92658374")