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_04_test
import (
"advent_of_code_2024/day_04"
"advent_of_code_2024/helpers"
_ "embed"
"testing"
)
@@ -13,15 +14,9 @@ var ExampleData string
var ComplexExampleData string
func TestBasicSolutionExample(t *testing.T) {
result := day_04.SolveBasic(ExampleData)
if result != 18 {
t.Fatalf("Expected 18 received %d", result)
}
helpers.Check(t, day_04.SolveBasic, helpers.Format(ExampleData), 18)
}
func TestComplexSolutionExample(t *testing.T) {
result := day_04.SolveComplex(ComplexExampleData)
if result != 9 {
t.Fatalf("Expected 9 received %d", result)
}
helpers.Check(t, day_04.SolveComplex, helpers.Format(ComplexExampleData), 9)
}