Esempio n. 1
0
 def test_part2_test3(self):
     test_input = aoc_download.aoc.puzzle_input_file(YEAR,
                                                     DAY,
                                                     extra='_part1_test5')
     test_recipes = get_recipes(test_input)
     self.assertEqual(fuel_made(test_recipes, ore_quantity=1000000000000),
                      460664)
Esempio n. 2
0
 def test_part2_actual(self):
     test_input = aoc_download.aoc.puzzle_input_file(YEAR, DAY, extra='')
     test_recipes = get_recipes(test_input)
     self.assertEqual(fuel_made(test_recipes, ore_quantity=1000000000000),
                      1120408)
Esempio n. 3
0
 def test_part1_test1(self):
     test_input = aoc_download.aoc.puzzle_input_file(YEAR,
                                                     DAY,
                                                     extra='_part1_test1')
     test_recipes = get_recipes(test_input)
     self.assertEqual(ore_required(test_recipes), 31)