2024-12-09 22:53:46 +00:00
|
|
|
package day_09_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"advent_of_code_2024/day_09"
|
2024-12-12 21:12:54 +00:00
|
|
|
"advent_of_code_2024/helpers"
|
2024-12-09 22:53:46 +00:00
|
|
|
_ "embed"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
//go:embed example_data.txt
|
|
|
|
var ExampleData string
|
|
|
|
|
|
|
|
func TestBasicSolutionExample(t *testing.T) {
|
2024-12-12 21:12:54 +00:00
|
|
|
helpers.Check(t, day_09.SolveBasic, helpers.Format(ExampleData), 1928)
|
2024-12-09 22:53:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestComplexSolutionExample(t *testing.T) {
|
2024-12-12 21:12:54 +00:00
|
|
|
helpers.Check(t, day_09.SolveComplex, helpers.Format(ExampleData), 2858)
|
2024-12-09 22:53:46 +00:00
|
|
|
}
|