def test_18(self): sample_data = day18.get_data(day18.SAMPLE_PATH) self.assertEqual(day18.part_1(sample_data), 4140) self.assertEqual(day18.part_2(sample_data), 3993) challenge_data = day18.get_data(day18.INPUT_PATH) self.assertEqual(day18.part_1(challenge_data), 3987) self.assertEqual(day18.part_2(challenge_data), 4500)
def test_18(self): challenge_data = day18.get_data(day18.INPUT_PATH)[0] self.assertEqual(day18.part_1(challenge_data), 25190263477788) self.assertEqual(day18.part_2(challenge_data), 297139939002972)
def test_example_input(self): result = part_2(example_input) self.assertEqual(result, 11994)
def test_real_input(self): result = part_2(input) self.assertEqual(result, 388966573054664)
def test_with_example_6(self): self.assertEqual(part_2(EXAMPLE_6), 23340)
def test_with_input(self): lines = read_input_lines(18) self.assertEqual(sum(part_2(line) for line in lines), 20394514442037)
def test_with_example_5(self): self.assertEqual(part_2(EXAMPLE_5), 669060)
def test_with_example_4(self): self.assertEqual(part_2(EXAMPLE_4), 1445)
def test_with_example_3(self): self.assertEqual(part_2(EXAMPLE_3), 46)
def test_with_example_2(self): self.assertEqual(part_2(EXAMPLE_2), 51)
def test_with_example_1(self): self.assertEqual(part_2(EXAMPLE_1), 231)