From 2632bc7a5890812973f8fc7193ba33ae13f515ab Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Thu, 5 Dec 2024 11:59:26 +0100 Subject: [PATCH] =?UTF-8?q?feat(day):=20add=20=E2=80=B9[KO]=E2=80=BA=20to?= =?UTF-8?q?=20message=20when=20test=20fails?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matej Focko --- src/Day.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Day.kt b/src/Day.kt index 1966a53..1594fca 100644 --- a/src/Day.kt +++ b/src/Day.kt @@ -24,13 +24,13 @@ abstract class Day { part1Answer?.let { print("Checking part 1:\t") - check(part1() == it) { "Given answer: ${part1()}" } + check(part1() == it) { "[KO] Given answer: ${part1()}" } println("[OK]") } part2Answer?.let { print("Checking part 2:\t") - check(part2() == it) { "Given answer: ${part2()}" } + check(part2() == it) { "[KO] Given answer: ${part2()}" } println("[OK]") } }