20 lines
414 B
Go
20 lines
414 B
Go
package day_07_test
|
|
|
|
import (
|
|
"advent_of_code_2024/day_07"
|
|
"advent_of_code_2024/helpers"
|
|
_ "embed"
|
|
"testing"
|
|
)
|
|
|
|
//go:embed example_data.txt
|
|
var ExampleData string
|
|
|
|
func TestBasicSolutionExample(t *testing.T) {
|
|
helpers.Check(t, day_07.SolveBasic, helpers.Format(ExampleData), 3749)
|
|
}
|
|
|
|
func TestComplexSolutionExample(t *testing.T) {
|
|
helpers.Check(t, day_07.SolveComplex, helpers.Format(ExampleData), 11387)
|
|
}
|