advent_of_code_2024/day_06/solution_test.go

20 lines
408 B
Go

package day_06_test
import (
"advent_of_code_2024/day_06"
"advent_of_code_2024/helpers"
_ "embed"
"testing"
)
//go:embed example_data.txt
var ExampleData string
func TestBasicSolutionExample(t *testing.T) {
helpers.Check(t, day_06.SolveBasic, helpers.Format(ExampleData), 41)
}
func TestComplexSolutionExample(t *testing.T) {
helpers.Check(t, day_06.SolveComplex, helpers.Format(ExampleData), 6)
}