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