advent_of_code_2024/day_04/solution_test.go

23 lines
482 B
Go
Raw Permalink Normal View History

2024-12-04 17:26:41 +00:00
package day_04_test
import (
"advent_of_code_2024/day_04"
2024-12-12 21:12:54 +00:00
"advent_of_code_2024/helpers"
2024-12-04 17:26:41 +00:00
_ "embed"
"testing"
)
//go:embed example_data.txt
var ExampleData string
//go:embed complex_example_data.txt
var ComplexExampleData string
func TestBasicSolutionExample(t *testing.T) {
2024-12-12 21:12:54 +00:00
helpers.Check(t, day_04.SolveBasic, helpers.Format(ExampleData), 18)
2024-12-04 17:26:41 +00:00
}
func TestComplexSolutionExample(t *testing.T) {
2024-12-12 21:12:54 +00:00
helpers.Check(t, day_04.SolveComplex, helpers.Format(ComplexExampleData), 9)
2024-12-04 17:26:41 +00:00
}