From 5d7b6bfbfb8dee0d9265f709419a1997efbeca9f Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 7 Jan 2024 16:00:29 +1300 Subject: [PATCH] add failing test for hand calculation --- game_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/game_test.go b/game_test.go index a86d9fd..c03da56 100644 --- a/game_test.go +++ b/game_test.go @@ -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))