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_01_test
import (
"advent_of_code_2024/day_01"
"advent_of_code_2024/helpers"
_ "embed"
"testing"
)
@@ -10,15 +11,9 @@ import (
var BasicExampleData string
func TestBasicSolutionExample(t *testing.T) {
result := day_01.SolveBasic(BasicExampleData)
if result != 11 {
t.Fatalf("Expected 11 received %d", result)
}
helpers.Check(t, day_01.SolveBasic, helpers.Format(BasicExampleData), 11)
}
func TestComplexSolutionExample(t *testing.T) {
result := day_01.SolveComplex(BasicExampleData)
if result != 31 {
t.Fatalf("Expected 31 received %d", result)
}
helpers.Check(t, day_01.SolveComplex, helpers.Format(BasicExampleData), 31)
}