29 lines
635 B
Go
29 lines
635 B
Go
package day10_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.bizdoc.ro/gabi-public/Advent-of-Code.git/tests"
|
|
"git.bizdoc.ro/gabi-public/Advent-of-Code.git/year25/day10"
|
|
)
|
|
|
|
func TestPart1Example(t *testing.T) {
|
|
const want = 7
|
|
tests.Test(t, "example.txt", tests.Handler(day10.Part1), want)
|
|
}
|
|
|
|
func TestPart1(t *testing.T) {
|
|
const want = 447
|
|
tests.Test(t, "input.txt", tests.Handler(day10.Part1), want)
|
|
}
|
|
|
|
func TestPart2Example(t *testing.T) {
|
|
const want = 33
|
|
tests.Test(t, "example.txt", tests.Handler(day10.Part2V3), want)
|
|
}
|
|
|
|
func TestPart2(t *testing.T) {
|
|
const want = 18960
|
|
tests.Test(t, "input.txt", tests.Handler(day10.Part2V3), want)
|
|
}
|