aoc21/d9/d9_test.go

28 lines
353 B
Go
Raw Normal View History

2022-02-21 22:01:00 +02:00
package d9
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestD8(t *testing.T) {
input := `2199943210
3987894921
9856789892
8767896789
9899965678`
assert.EqualValues(t, 15, D9(input))
}
func TestD8P2(t *testing.T) {
input := `2199943210
3987894921
9856789892
8767896789
9899965678`
assert.EqualValues(t, 1134, D9P2(input))
}