From 381496366f718a048e5caca890b69da5ffe0d605 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Thu, 16 Dec 2021 18:42:24 +0100 Subject: [PATCH] Tests are skipped when te expected value is -2 --- 2021/common/aoc.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/2021/common/aoc.go b/2021/common/aoc.go index 2576bfd..5b12b9b 100644 --- a/2021/common/aoc.go +++ b/2021/common/aoc.go @@ -40,6 +40,11 @@ func (aoc adventOfCode) Solution(part int, f func(*bufio.Scanner) int) { failed := false for i, testCase := range aoc.testCases { + if testCase.results[part-1] == -2 { + fmt.Printf("\tTest %d skipped!\n", i+1) + continue + } + input := bufio.NewScanner(strings.NewReader(testCase.input)) result := f(input)