Cleanup and reorganization

This commit is contained in:
Borna Rajković committed 2024-12-12 22:12:54 +01:00
1 parent 0af5c11e6d
commit 2107b9c990
20 files changed
+158 -215

No files matched your search

+3 -8
View File
@@ -2,6 +2,7 @@ package day_06_test
import (
"advent_of_code_2024/day_06"
"advent_of_code_2024/helpers"
_ "embed"
"testing"
)
@@ -10,15 +11,9 @@ import (
var ExampleData string
func TestBasicSolutionExample(t *testing.T) {
result := day_06.SolveBasic(ExampleData)
if result != 41 {
t.Fatalf("Expected 41 received %d", result)
}
helpers.Check(t, day_06.SolveBasic, helpers.Format(ExampleData), 41)
}
func TestComplexSolutionExample(t *testing.T) {
result := day_06.SolveComplex(ExampleData)
if result != 6 {
t.Fatalf("Expected 6 received %d", result)
}
helpers.Check(t, day_06.SolveComplex, helpers.Format(ExampleData), 6)
}