Add color printing to template

This commit is contained in:
William Brawner 2024-12-09 22:22:06 -07:00
parent 532175340a
commit 418f47bcc4
Signed by: wbrawner
GPG key ID: 8FF12381C6C90D35

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python3
from util import read_input
from util import print_color, read_input, Color
def part1(input_lines):
@ -12,10 +12,14 @@ def part2(input_lines):
test_input = read_input("_test")
assert 0 == part1(test_input)
test_input_result = part1(test_input)
print_color(test_input_result, Color.GREY)
assert 0 == test_input_result
real_input = read_input()
print(part1(real_input))
assert 0 == part2(test_input)
test_input_result = part2(test_input)
print_color(test_input_result, Color.GREY)
assert 0 == test_input_result
print(part2(real_input))