advent_of_code_2024/day_02/solution_test.go

20 lines
407 B
Go
Raw Normal View History

2024-12-03 18:35:51 +00:00
package day_02_test
import (
"advent_of_code_2024/day_02"
2024-12-12 21:12:54 +00:00
"advent_of_code_2024/helpers"
2024-12-03 18:35:51 +00:00
_ "embed"
"testing"
)
//go:embed example_data.txt
var ExampleData string
func TestBasicSolutionExample(t *testing.T) {
2024-12-12 21:12:54 +00:00
helpers.Check(t, day_02.SolveBasic, helpers.Format(ExampleData), 2)
2024-12-03 18:35:51 +00:00
}
func TestComplexSolutionExample(t *testing.T) {
2024-12-12 21:12:54 +00:00
helpers.Check(t, day_02.SolveComplex, helpers.Format(ExampleData), 4)
2024-12-03 18:35:51 +00:00
}