コード例 #1
0
ファイル: unittests.py プロジェクト: Steve-V/sdv-shippingCost
 def test_cost_to_move_1400_units_one_mile(self):
   self.assertAlmostEqual( ship.freightCost(1400, 1), 73)
コード例 #2
0
ファイル: unittests.py プロジェクト: Steve-V/sdv-shippingCost
 def test_cost_to_move_500_units_3000_miles(self):
   self.assertAlmostEqual( ship.freightCost(500, 3000), 84000)
コード例 #3
0
ファイル: unittests.py プロジェクト: Steve-V/sdv-shippingCost
 def test_cost_to_move_20_units_one_mile(self):
   self.assertAlmostEqual( ship.freightCost(20, 1), 1.3)
コード例 #4
0
ファイル: unittests.py プロジェクト: Steve-V/sdv-shippingCost
 def test_cost_to_move_450_units_one_mile(self):
   self.assertAlmostEqual( ship.freightCost(450, 1), 24.75)
コード例 #5
0
ファイル: unittests.py プロジェクト: Steve-V/sdv-shippingCost
 def test_cost_to_move_one_full_truckload_from_A(self):
   self.assertAlmostEqual( ship.freightCost(300, 200), 3000)