示例#1
0
 def test_in(self):
     result = day19.solve(inputs.read_str("input19_actual"), 2)
     self.assertEqual(result, 332)
示例#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')
示例#3
0
 def test_01(self):
     result = day19.solve(inputs.read_str("input19_1"), 2)
     self.assertEqual(result, 12)
示例#4
0
 def test_in(self):
     result = day21.solve(inputs.read_str("input21_actual"), 1)
     self.assertEqual(result, 2595)
示例#5
0
 def test_01(self):
     result = day21.solve(inputs.read_str("input21"), 2)
     self.assertEqual(result, 'mxmxvkd,sqjhc,fvjkl')
示例#6
0
 def test_in(self):
     result = day24.solve(inputs.read_str("input24_actual"), 2)
     self.assertEqual(result, 4133)
示例#7
0
 def test_01(self):
     result = day21.solve(inputs.read_str("input21"), 1)
     self.assertEqual(result, 5)
示例#8
0
 def test_01(self):
     result = day24.solve(inputs.read_str("input24"), 2)
     self.assertEqual(result, 2208)
示例#9
0
 def test_in(self):
     result = day22.solve(inputs.read_str("input22_actual"), 2)
     self.assertEqual(result, 33206)
示例#10
0
 def test_01(self):
     result = day22.solve(inputs.read_str("input22"), 2)
     self.assertEqual(result, 291)
示例#11
0
 def test_in(self):
     result = day20.solve(inputs.read_str("input20_actual"), 1)
     self.assertEqual(result, 63187742854073)
示例#12
0
 def test_01(self):
     result = day20.solve(inputs.read_str("input20"), 1)
     self.assertEqual(result, 20899048083289)