Exemple #1
0
 def test_answer_part_a(self):  # noqa D102
     result = day05.part_a(helpers.get_file_contents('day05.txt'))
     self.assertEqual(result, '11118')
Exemple #2
0
 def test_example_a1(self):
     result = day05.part_a(['ugknbfddgicrmopn'])
     self.assertEqual(result, '1')
Exemple #3
0
 def test_example_a(self, test_input, expected):  # noqa D102
     result = day05.part_a(test_input)
     self.assertEqual(result, expected)
Exemple #4
0
 def test_answer_part_a(self):
     result = day05.part_a(util.get_file_contents('day05.txt'))
     self.assertEqual(result, '238')
Exemple #5
0
 def test_example_a5(self):
     result = day05.part_a(['dvszwmarrgswjxmb'])
     self.assertEqual(result, '0')
Exemple #6
0
 def test_example_a4(self):
     result = day05.part_a(['haegwjzuvuyypxyu'])
     self.assertEqual(result, '0')
Exemple #7
0
 def test_example_a3(self):
     result = day05.part_a(['jchzalrnumimnmhp'])
     self.assertEqual(result, '0')
Exemple #8
0
 def test_example_a2(self):
     result = day05.part_a(['aaa'])
     self.assertEqual(result, '1')