aoc/2022/day04_test.py

16 lines
276 B
Python

#!/usr/bin/env python3
from day04 import *
def test_part1() -> None:
sections = open("day04.txt")
assert part1(sections) == 588
sections.close()
def test_part2() -> None:
sections = open("day04.txt")
assert part2(sections) == 911
sections.close()