19 lines
340 B
Go
19 lines
340 B
Go
package d6
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestP1(t *testing.T) {
|
|
assert.EqualValues(t, 5934, P1("3,4,3,1,2", 80))
|
|
}
|
|
|
|
// func TestD6P2Naive(t *testing.T) {
|
|
// assert.EqualValues(t, 26984457539, D6("3", 256))
|
|
// }
|
|
|
|
func TestP2(t *testing.T) {
|
|
assert.EqualValues(t, 26984457539, P2("3,4,3,1,2", 256))
|
|
}
|