2024-12-05 18:34:53 +00:00
|
|
|
package day_05_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"advent_of_code_2024/day_05"
|
2024-12-12 21:12:54 +00:00
|
|
|
"advent_of_code_2024/helpers"
|
2024-12-05 18:34:53 +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_05.SolveBasic, helpers.Format(ExampleData), 143)
|
2024-12-05 18:34:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestComplexSolutionExample(t *testing.T) {
|
2024-12-12 21:12:54 +00:00
|
|
|
helpers.Check(t, day_05.SolveComplex, helpers.Format(ExampleData), 123)
|
2024-12-05 18:34:53 +00:00
|
|
|
}
|