advent_of_code_2024/day_01/solution_test.go

20 lines
424 B
Go
Raw Permalink Normal View History

2024-12-01 09:55:43 +00:00
package day_01_test
import (
"advent_of_code_2024/day_01"
2024-12-12 21:12:54 +00:00
"advent_of_code_2024/helpers"
2024-12-01 09:55:43 +00:00
_ "embed"
"testing"
)
//go:embed example_data.txt
var BasicExampleData string
func TestBasicSolutionExample(t *testing.T) {
2024-12-12 21:12:54 +00:00
helpers.Check(t, day_01.SolveBasic, helpers.Format(BasicExampleData), 11)
2024-12-01 09:55:43 +00:00
}
func TestComplexSolutionExample(t *testing.T) {
2024-12-12 21:12:54 +00:00
helpers.Check(t, day_01.SolveComplex, helpers.Format(BasicExampleData), 31)
2024-12-01 09:55:43 +00:00
}