Beispiel #1
0
 def test_final_result(self):
     input_content = open("input_11", 'r').read()
     print(day.Day111(input_content, get_max=True).get_result())  # 1548
Beispiel #2
0
 def test_example_for_get_max(self):
     input_content = "sw,sw,s,se,sw,s,ne,ne"
     self.assertEqual(5, day.Day111(input_content, get_max=True).get_result())
Beispiel #3
0
 def test_example_1(self):
     input_content = "ne,ne,ne,ne,s,s"
     self.assertEqual(4, day.Day111(input_content, get_max=True).get_result())
Beispiel #4
0
 def test_example_against_get_max(self):
     input_content = "sw,sw,s,se,sw,s,ne,ne"
     self.assertEqual(3, day.Day111(input_content).get_result())
Beispiel #5
0
 def test_example_4(self):
     input_content = "se,sw,se,sw,sw"
     self.assertEqual(3, day.Day111(input_content).get_result())
Beispiel #6
0
 def test_example_3(self):
     input_content = "ne,ne,s,s"
     self.assertEqual(2, day.Day111(input_content).get_result())