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