Example #1
0
 def test_calculate_first_two_answers_from_input(self):
     wrapping_paper_order_list = ['3x11x24', '13x5x19']
     result = calculate_footage_of_wrapping_paper_needed(wrapping_paper_order_list)
     # print "The total should be: " + str(result)
     self.assertEqual(1650, result)
Example #2
0
 def test_answer_day2_for_me(self):
     wrapping_paper_order_list = open('input.txt', 'r')
     # print "wrapping_paper_order_list being looked at: " + str(wrapping_paper_order_list)
     result = calculate_footage_of_wrapping_paper_needed(wrapping_paper_order_list)
     # print "The total should be: " + str(result) # Answer: 1588178
     self.assertEqual(1588178, result)
Example #3
0
 def test_total_should_65(self):
     wrapping_paper_order_list = ['2x3x4', '1x1x10']
     result = calculate_footage_of_wrapping_paper_needed(wrapping_paper_order_list)
     print "The total should be: " + str(result)
     self.assertEqual(101, result)