Cleanup and reorganization
This commit is contained in:
1 parent
0af5c11e6d
commit
2107b9c990
20 files changed
+158
-215
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user