Esempio n. 1
0
 def test_in(self):
     result = day19.solve(inputs.read_str("input19_actual"), 2)
     self.assertEqual(result, 332)
Esempio n. 2
0
 def test_in(self):
     result = day21.solve(inputs.read_str("input21_actual"), 2)
     self.assertEqual(result,
                      'thvm,jmdg,qrsczjv,hlmvqh,zmb,mrfxh,ckqq,zrgzf')
Esempio n. 3
0
 def test_01(self):
     result = day19.solve(inputs.read_str("input19_1"), 2)
     self.assertEqual(result, 12)
Esempio n. 4
0
 def test_in(self):
     result = day21.solve(inputs.read_str("input21_actual"), 1)
     self.assertEqual(result, 2595)
Esempio n. 5
0
 def test_01(self):
     result = day21.solve(inputs.read_str("input21"), 2)
     self.assertEqual(result, 'mxmxvkd,sqjhc,fvjkl')
Esempio n. 6
0
 def test_in(self):
     result = day24.solve(inputs.read_str("input24_actual"), 2)
     self.assertEqual(result, 4133)
Esempio n. 7
0
 def test_01(self):
     result = day21.solve(inputs.read_str("input21"), 1)
     self.assertEqual(result, 5)
Esempio n. 8
0
 def test_01(self):
     result = day24.solve(inputs.read_str("input24"), 2)
     self.assertEqual(result, 2208)
Esempio n. 9
0
 def test_in(self):
     result = day22.solve(inputs.read_str("input22_actual"), 2)
     self.assertEqual(result, 33206)
Esempio n. 10
0
 def test_01(self):
     result = day22.solve(inputs.read_str("input22"), 2)
     self.assertEqual(result, 291)
Esempio n. 11
0
 def test_in(self):
     result = day20.solve(inputs.read_str("input20_actual"), 1)
     self.assertEqual(result, 63187742854073)
Esempio n. 12
0
 def test_01(self):
     result = day20.solve(inputs.read_str("input20"), 1)
     self.assertEqual(result, 20899048083289)