Files
advent-of-code/internal/2025/DaySix/code_test.go

27 lines
466 B
Go

package daysix
import "testing"
var testInput = []string{
"123 328 51 64 ",
" 45 64 387 23 ",
" 6 98 215 314",
"* + * + ",
}
func TestPartOne(t *testing.T) {
expected := 4277556
got := PartOne(testInput)
if got != expected {
t.Errorf("PartOne() = %d, want %d", got, expected)
}
}
func TestPartTwo(t *testing.T) {
expected := 3263827
got := PartTwo(testInput)
if got != expected {
t.Errorf("PartTwo() = %d, want %d", got, expected)
}
}