示例#1
0
 def testPartTwo(self):
     expected = 336
     foundTrees = partTwo(self.data, [[1, 1], [3, 1], [5, 1], [7, 1], [1, 2]])
     self.assertEqual(foundTrees, expected)
示例#2
0
 def testPartTwo(self):
     expected = 286
     actions = ['F10', 'N3', 'F7', 'R90', 'F11']
     result = partTwo(actions)
     self.assertEqual(result, expected)
示例#3
0
 def testPartTwo(self):
     expectedAcc = 8
     acc = partTwo(self.data)
     self.assertEqual(acc, expectedAcc)
示例#4
0
 def testPartTwo(self):
     expected = 1068781
     result = partTwo(self.data)
     self.assertEqual(result, expected)
示例#5
0
 def testPartTwo(self):
     expected = 62
     result = partTwo(127, self.data)
     self.assertEqual(result, expected)
示例#6
0
 def testPartTwo(self):
     expected = 26
     result = partTwo(self.initialState)
     self.assertEqual(result, expected)
示例#7
0
 def testPartTwo(self):
     expected = 208
     result = partTwo(self.data_v2)
     self.assertEqual(result, expected)
示例#8
0
 def testPartTwo(self):
     expected = 1
     matches = partTwo(self.data)
     self.assertEqual(matches, expected)
示例#9
0
 def testPartTwo(self):
     expected = 149245887792
     result = partTwo(self.data)
     self.assertEqual(result, expected)
示例#10
0
 def testPartTwo(self):
     expected = '979 * 366 * 675 = 241861950'
     self.assertEqual(partTwo(self.data), expected)