def test_ribbon_readfile(): content = [] with open("input.secret") as f: content = f.readlines() ribbon = wrapping_paper_dimensions.calculate_ribbon(content) print (ribbon) assert 3812909 == ribbon
def test_ribbon(): assert 34 == wrapping_paper_dimensions.calculate_ribbon(["2x3x4"]) assert 14 == wrapping_paper_dimensions.calculate_ribbon(["1x1x10"]) assert 48 == wrapping_paper_dimensions.calculate_ribbon(["2x3x4", "1x1x10"])