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_example(self):
     replacement_map = {"H": ["HO", "OH"], "O": ["HH"]}
     replacements = set(
         Day19.generated_molecules_from_molecule("HOH", replacement_map))
     self.assertCountEqual(["HOOH", "HOHO", "OHOH", "HHHH"], replacements)
 def test_example_part_2(self):
     replacement_map = {"e": ["H", "O"], "H": ["HO", "OH"], "O": ["HH"]}
     steps = Day19.steps_to_get_molecule("HOH", replacement_map)
     self.assertEqual(3, steps)
Example #4
0
 def test_example(self):
     replacement_map = {"H":["HO","OH"],"O":["HH"]}
     replacements = set(Day19.generated_molecules_from_molecule("HOH", replacement_map))
     self.assertCountEqual(["HOOH", "HOHO", "OHOH", "HHHH"], replacements)
Example #5
0
 def test_example_part_2(self):
     replacement_map = {"e":["H","O"], "H":["HO","OH"], "O":["HH"]}
     steps = Day19.steps_to_get_molecule("HOH", replacement_map)
     self.assertEqual(3, steps)