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_09_test
|
||||
|
||||
import (
|
||||
"advent_of_code_2024/day_09"
|
||||
"advent_of_code_2024/helpers"
|
||||
_ "embed"
|
||||
"testing"
|
||||
)
|
||||
@@ -10,15 +11,9 @@ import (
|
||||
var ExampleData string
|
||||
|
||||
func TestBasicSolutionExample(t *testing.T) {
|
||||
result := day_09.SolveBasic(ExampleData)
|
||||
if result != 1928 {
|
||||
t.Fatalf("Expected 1928 received %d", result)
|
||||
}
|
||||
helpers.Check(t, day_09.SolveBasic, helpers.Format(ExampleData), 1928)
|
||||
}
|
||||
|
||||
func TestComplexSolutionExample(t *testing.T) {
|
||||
result := day_09.SolveComplex(ExampleData)
|
||||
if result != 2858 {
|
||||
t.Fatalf("Expected 2858 received %d", result)
|
||||
}
|
||||
helpers.Check(t, day_09.SolveComplex, helpers.Format(ExampleData), 2858)
|
||||
}
|
||||
Reference in new issue
Block a user