2024-12-03 19:05:59 +00:00
|
|
|
package day_03_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"advent_of_code_2024/day_03"
|
2024-12-12 21:12:54 +00:00
|
|
|
"advent_of_code_2024/helpers"
|
2024-12-03 19:05:59 +00:00
|
|
|
_ "embed"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
//go:embed example_data.txt
|
|
|
|
var ExampleData string
|
|
|
|
|
|
|
|
//go:embed complex_example_data.txt
|
|
|
|
var ComplexExampleData string
|
|
|
|
|
|
|
|
func TestBasicSolutionExample(t *testing.T) {
|
2024-12-12 21:12:54 +00:00
|
|
|
helpers.Check(t, day_03.SolveBasic, helpers.Format(ExampleData), 161)
|
2024-12-03 19:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestComplexSolutionExample(t *testing.T) {
|
2024-12-12 21:12:54 +00:00
|
|
|
helpers.Check(t, day_03.SolveComplex, helpers.Format(ComplexExampleData), 48)
|
2024-12-03 19:05:59 +00:00
|
|
|
}
|