18 lines
301 B
Go
18 lines
301 B
Go
|
package day_11_test
|
||
|
|
||
|
import (
|
||
|
"advent_of_code_2024/day_11"
|
||
|
_ "embed"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
//go:embed example_data.txt
|
||
|
var ExampleData string
|
||
|
|
||
|
func TestBasicSolutionExample(t *testing.T) {
|
||
|
result := day_11.SolveBasic(ExampleData)
|
||
|
if result != 55312 {
|
||
|
t.Fatalf("Expected 55312 received %d", result)
|
||
|
}
|
||
|
}
|