aoc2020/aoclib/output.py
2020-12-20 10:18:12 +01:00

8 lines
268 B
Python

def printSolution(day, part, solution, test=None):
if test:
print("(TEST) ", end="")
print("Solution to day %s, part %s: %s" % (day, part, solution))
if test:
print("Expected: %s (%s)" % (test, "correct" if test == solution else "WRONG"))