2022 Day 03
This commit is contained in:
14
2022/03/test_code.py
Normal file
14
2022/03/test_code.py
Normal file
@ -0,0 +1,14 @@
|
||||
# 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) == 157
|
||||
print("Passed Part 1")
|
||||
assert part2(vals) == 70
|
||||
print("Passed Part 2")
|
||||
|
||||
if __name__ == "__main__":
|
||||
test()
|
Reference in New Issue
Block a user