add failing test for hand calculation

This commit is contained in:
mappu 2024-01-07 16:00:29 +13:00
parent 670e557966
commit 5d7b6bfbfb
1 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,17 @@ func TestPlayRound(t *testing.T) {
assert.EqualValues(t, []int{0, 28, 6, 6}, scores)
}
func TestPlayRound2(t *testing.T) {
entropy := rand.New(rand.NewSource(1704595947230690673))
rr := NewRound(3, 4, entropy)
nextPlayer, scores := rr.Play(0)
assert.EqualValues(t, 0, nextPlayer)
assert.EqualValues(t, []int{0, 28, 6, 6}, scores)
}
func TestDrawDiscard(t *testing.T) {
entropy := rand.New(rand.NewSource(0xdeadbeef))