aoc21/d6/d6_test.go

20 lines
335 B
Go
Raw Normal View History

2022-02-17 01:25:23 +02:00
package d6
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestD6(t *testing.T) {
assert.EqualValues(t, 5934, D6("3,4,3,1,2", 80))
}
func TestD6P2Naive(t *testing.T) {
assert.EqualValues(t, 26984457539, D6("3", 256))
}
func TestD6P2(t *testing.T) {
assert.EqualValues(t, 26984457539, D6P2("3,4,3,1,2", 256))
}