Add color printing to template
This commit is contained in:
parent
532175340a
commit
418f47bcc4
1 changed files with 7 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue