Beispiel #1
0
 def test_example_a1(self):
     result = day03.part_a(['>'])
     self.assertEqual(result, '2')
Beispiel #2
0
 def test_answer_part_a(self):
     result = day03.part_a(util.get_file_contents('day03.txt'))
     self.assertEqual(result, '2572')
Beispiel #3
0
 def test_answer_part_a(self):  # noqa D102
     result = day03.part_a(helpers.get_file_contents('day03.txt'))
     self.assertEqual(result, '98005')
Beispiel #4
0
 def test_example_a2(self):
     result = day03.part_a(['^>v<'])
     self.assertEqual(result, '4')
Beispiel #5
0
 def test_example_a(self, test_input, expected):  # noqa D102
     result = day03.part_a(test_input)
     self.assertEqual(result, expected)