Advent-of-Code/year25/day9/day_test.go
2025-12-24 22:25:20 +02:00

28 lines
571 B
Go

package day9
import (
"testing"
"git.bizdoc.ro/gabi-public/Advent-of-Code.git/tests"
)
func TestPart1Example(t *testing.T) {
const want = 50
tests.Test(t, "example.txt", tests.Handler(Part1), want)
}
func TestPart1(t *testing.T) {
const want = 4771508457
tests.Test(t, "input.txt", tests.Handler(Part1), want)
}
func TestPart2Example(t *testing.T) {
const want = 24
tests.Test(t, "example.txt", tests.Handler(Part2), want)
}
func TestPart2(t *testing.T) {
const want = 1539809693
// 122760 too low
tests.Test(t, "input.txt", tests.Handler(Part2), want)
}