Advent-of-Code/2023/01/test_code.py

15 lines
316 B
Python
Raw Normal View History

2023-12-07 00:35:21 +01:00
# SPDX-License-Identifier: MIT
# Copyright (c) 2023 Akumatic
from code import read_file, part1, part2
def test():
vals = read_file("test_input.txt")
assert part1(vals[:4]) == 142
print("Passed Part 1")
assert part2(vals[4:]) == 281
print("Passed Part 2")
if __name__ == "__main__":
test()