Files
advent-of-code-2025/cmd/12/main_test.go
T

29 lines
536 B
Go
Raw Normal View History

2025-12-23 08:18:01 -06:00
package main_test
import (
"testing"
solution "github.com/StevanFreeborn/advent-of-code-2025/cmd/12"
)
2025-12-24 08:35:14 -06:00
// NOTE: This takes long time
func TestSolvePartOneWithExampleInput(t *testing.T) {
expected := 2
2025-12-23 08:18:01 -06:00
result := solution.SolvePartOne("EXAMPLE.txt")
if result != expected {
t.Errorf("got %d but wanted %d", result, expected)
}
}
2025-12-24 08:35:14 -06:00
func TestSolvePartOneWithInput(t *testing.T) {
expected := 550
result := solution.SolvePartOne("INPUT.txt")
if result != expected {
t.Errorf("got %d but wanted %d", result, expected)
}
}