add failing test for hand calculation
This commit is contained in:
parent
670e557966
commit
5d7b6bfbfb
11
game_test.go
11
game_test.go
@ -18,6 +18,17 @@ func TestPlayRound(t *testing.T) {
|
|||||||
assert.EqualValues(t, []int{0, 28, 6, 6}, scores)
|
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) {
|
func TestDrawDiscard(t *testing.T) {
|
||||||
|
|
||||||
entropy := rand.New(rand.NewSource(0xdeadbeef))
|
entropy := rand.New(rand.NewSource(0xdeadbeef))
|
||||||
|
Loading…
Reference in New Issue
Block a user