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

15 lines
307 B
Python
Raw Normal View History

2021-12-01 18:00:32 +01:00
# SPDX-License-Identifier: MIT
# Copyright (c) 2021 Akumatic
from code import part1, part2
def test():
vals = [199,200,208,210,200,207,240,269,260,263]
assert part1(vals) == 7
print("Passed Part 1")
assert part2(vals) == 5
print("Passed Part 2")
if __name__ == "__main__":
test()