Example #1
0
 def test_larger_input_from_file(self):
     ribbon_order = [24, 25, 17]  # (17+17+24+24) + (24*25*17) = 82 + 10,200 = 10282
     result = order_more_ribbon(ribbon_order)
     print "The total should be (10282), got: " + str(result)
     self.assertEqual(10282, result)
Example #2
0
 def test_last_input_from_file(self):
     ribbon_order = [14, 6, 11]  # (6+6+11+11) + (14*6*11) = 34 + 924 = 958
     result = order_more_ribbon(ribbon_order)
     # print "The total should be (958), got: " + str(result)
     self.assertEqual(958, result)
Example #3
0
 def test_order_more_ribbon_single_order_two(self):  # 1x1x10
     ribbon_order = [1, 1, 10]
     result = order_more_ribbon(ribbon_order)
     # print "The total should be (14), got: " + str(result)
     self.assertEqual(14, result)
Example #4
0
 def test_first_input_from_file(self):
     ribbon_order = [3, 11, 24]  # (3+3+11+11) + (3*11*24) = 28 + 792 = 820
     result = order_more_ribbon(ribbon_order)
     print "The total should be (820), got: " + str(result)
     self.assertEqual(820, result)
Example #5
0
 def test_order_more_ribbon_single_order(self):  # 2x3x4
     ribbon_order = [2, 3, 4]
     result = order_more_ribbon(ribbon_order)
     # print "The total should be (34), got: " + str(result)
     self.assertEqual(34, result)