aoc21/d6/d6_test.go

20 lines
340 B
Go
Raw Permalink Normal View History

2022-02-17 01:25:23 +02:00
package d6
import (
"testing"
"github.com/stretchr/testify/assert"
)
2022-02-21 22:28:30 +02:00
func TestP1(t *testing.T) {
assert.EqualValues(t, 5934, P1("3,4,3,1,2", 80))
2022-02-17 01:25:23 +02:00
}
2022-02-21 22:28:30 +02:00
// func TestD6P2Naive(t *testing.T) {
// assert.EqualValues(t, 26984457539, D6("3", 256))
// }
2022-02-17 01:25:23 +02:00
2022-02-21 22:28:30 +02:00
func TestP2(t *testing.T) {
assert.EqualValues(t, 26984457539, P2("3,4,3,1,2", 256))
2022-02-17 01:25:23 +02:00
}