コード例 #1
0
 def test_should_pass_all_three_rules_for_only_2(self):
     list_of_strings = open('testinputpart2.txt', 'r')
     result = one_function_to_do_it_all_part_2(list_of_strings)
     self.assertEqual(2, result)
コード例 #2
0
 def test_solve_day_5_part_2_for_me(self):
     list_of_strings = open('input.txt', 'r')
     result = one_function_to_do_it_all_part_2(list_of_strings)
     print "The Answer to Day 5, Part 2 is: " + str(result)  # Answer: 55