예제 #1
0
 def test_integration_testData(self):
     self.assertEqual(
         37, calculateFuelCosts(self.testData, findMidpoint(self.testData)))
예제 #2
0
 def test_integration_inputData(self):
     self.assertEqual(
         326132,
         calculateFuelCosts(self.inputData, findMidpoint(self.inputData)))
예제 #3
0
 def test_findMidpoint_simple_even(self):
     self.assertEqual(3, findMidpoint([1, 2, 3, 4, 5, 6]))
예제 #4
0
 def test_findMidpoint_testData(self):
     self.assertEqual(2, findMidpoint(self.testData))
예제 #5
0
 def test_findMidpoint_simple_odd(self):
     self.assertEqual(3, findMidpoint([1, 2, 3, 4, 5]))