pot_test.go 327 B

123456789101112131415161718192021
  1. package game
  2. import "testing"
  3. func Test_Pot(t *testing.T) {
  4. bets := []uint32{60, 80, 90, 0, 0, 0, 0, 0, 0}
  5. res := calcPot(bets)
  6. //[{180 [1 2 3]} {40 [2 3]} {10 [3]}]
  7. t.Log(res)
  8. bets = []uint32{60, 60, 60, 0, 0, 0, 0, 0, 0}
  9. res = calcPot(bets)
  10. //[{180 [1 2 3]}]
  11. t.Log(res)
  12. a := []byte{}
  13. a = nil
  14. t.Log(len(a))
  15. }