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()
Exemplo n.º 2
0
#Importing Function
#Not ideal way to import function as "Day8.py" is in the same folder
import Day8
Day8.make()
Day8.origin()
Day8.drive()
Exemplo n.º 3
0
 def test_case_part_1_2(self):
     self.assertEqual("abc", Day8.input_string_to_pystr('"abc"'))
Exemplo n.º 4
0
 def test_case_part_2_4(self):
     self.assertEqual(r'"\"\\x27\""',
                      Day8.input_string_to_escaped_str(r'"\x27"'))
Exemplo n.º 5
0
 def test_case_part_2_3(self):
     self.assertEqual(r'"\"aaa\\\"aaa\""',
                      Day8.input_string_to_escaped_str(r'"aaa\"aaa"'))
Exemplo n.º 6
0
 def test_case_part_2_2(self):
     self.assertEqual(r'"\"abc\""',
                      Day8.input_string_to_escaped_str('"abc"'))
Exemplo n.º 7
0
 def test_case_part_1_4(self):
     self.assertEqual("'", Day8.input_string_to_pystr('"\\x27"'))
Exemplo n.º 8
0
 def test_case_part_1_3(self):
     self.assertEqual('aaa"aaa', Day8.input_string_to_pystr('"aaa\\"aaa"'))
Exemplo n.º 9
0
 def test_puzzledata(self):
     self.assertEqual(Day8.solve("puzzledata.txt"), 42146)
Exemplo n.º 10
0
 def test_testdata1(self):
     self.assertEqual(Day8.solve("testdata1.txt"), 138)
Exemplo n.º 11
0
 def test_case_part_1_2(self):
     self.assertEqual("abc", Day8.input_string_to_pystr('"abc"'))
Exemplo n.º 12
0
 def test_case_part_2_4(self):
     self.assertEqual(r'"\"\\x27\""', Day8.input_string_to_escaped_str(r'"\x27"'))
Exemplo n.º 13
0
 def test_case_part_2_3(self):
     self.assertEqual(r'"\"aaa\\\"aaa\""', Day8.input_string_to_escaped_str(r'"aaa\"aaa"'))
Exemplo n.º 14
0
 def test_case_part_2_2(self):
     self.assertEqual(r'"\"abc\""', Day8.input_string_to_escaped_str('"abc"'))
Exemplo n.º 15
0
 def test_case_part_1_4(self):
     self.assertEqual("'", Day8.input_string_to_pystr('"\\x27"'))
Exemplo n.º 16
0
 def test_case_part_1_3(self):
     self.assertEqual('aaa"aaa', Day8.input_string_to_pystr('"aaa\\"aaa"'))