Advent-of-Code/2022/12/test_code.py

15 lines
306 B
Python
Raw Permalink Normal View History

2022-12-12 14:25:14 +01:00
# SPDX-License-Identifier: MIT
# Copyright (c) 2022 Akumatic
from code import read_file, part1, part2
def test():
vals = read_file("test_input.txt")
assert part1(vals) == 31
print("Passed Part 1")
assert part2(vals) == 29
print("Passed Part 2")
if __name__ == "__main__":
test()