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