2021 Day 04

This commit is contained in:
Akumatic
2021-12-05 22:22:33 +01:00
parent ea38be1d46
commit 234d16ccd3
7 changed files with 806 additions and 2 deletions

14
2021/04/test_code.py Normal file
View File

@@ -0,0 +1,14 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2021 Akumatic
from code import part1, part2, read_file
def test():
draws, fields = read_file("test_input.txt")
assert part1(draws, fields) == 4512
print("Passed Part 1")
assert part2(draws, fields) == 1924
print("Passed Part 2")
if __name__ == "__main__":
test()