Example #1
0
 def test_part1(self):
     inputs = ["ne,ne,ne", "ne,ne,sw,sw", "ne,ne,s,s", "se,sw,se,sw,sw"]
     outputs = [3, 0, 2, 3]
     for input, output in zip(inputs, outputs):
         actual = Day11.solve_part1(input)
         self.assertEqual(
             actual, output,
             f"input={input}, expected={output}, actual={actual}")
Example #2
0
 def test_part1(self):
     self.assertEqual(Day11.solve_part1(self.input), 37)
Example #3
0
 def setUp(self):
     self.input = Day11().read_file("tests/test_day11.txt")
Example #4
0
 def test_part2(self):
     self.assertEqual(Day11.solve("ghijklmn", 1), "ghjaabcc")
Example #5
0
 def test_part1(self):
     self.assertEqual(Day11.solve("abcdefgh", 1), "abcdffaa")