mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-16 00:52:40 +00:00
gofmt: bring internal/ and cmd/ back to gofmt -l clean
Mechanical `gofmt -w ./internal ./cmd`. Mostly struct-field realignment that had drifted, plus a few trailing-newline fixes. No behaviour change — gofmt is semantics-preserving, and build/vet/test are green either side. Split out from the code-review fixes that follow so those stay reviewable instead of hiding inside a wall of realignment.
This commit is contained in:
@@ -137,11 +137,11 @@ func TestHasStraight(t *testing.T) {
|
||||
ranks uint16
|
||||
want bool
|
||||
}{
|
||||
{"A-high straight (T-J-Q-K-A)", 0x1F00, true}, // bits 8-12
|
||||
{"low straight (A-2-3-4-5)", 0x100F, true}, // bits 0,1,2,3,12
|
||||
{"5-6-7-8-9", 0x00F8, true}, // bits 3-7
|
||||
{"four consecutive", 0x000F, false}, // bits 0-3
|
||||
{"scattered", 0x1111, false}, // bits 0,4,8,12
|
||||
{"A-high straight (T-J-Q-K-A)", 0x1F00, true}, // bits 8-12
|
||||
{"low straight (A-2-3-4-5)", 0x100F, true}, // bits 0,1,2,3,12
|
||||
{"5-6-7-8-9", 0x00F8, true}, // bits 3-7
|
||||
{"four consecutive", 0x000F, false}, // bits 0-3
|
||||
{"scattered", 0x1111, false}, // bits 0,4,8,12
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
@@ -254,14 +254,14 @@ func TestBuildTipUserPrompt_NoDrawWhenMadeHand(t *testing.T) {
|
||||
|
||||
func TestBuildTipUserPrompt_PotOddsWhenFacingBet(t *testing.T) {
|
||||
ctx := holdemTipContext{
|
||||
Hole: [2]string{"A♠", "K♠"},
|
||||
Community: "2♣ 7♦ J♠",
|
||||
Street: StreetFlop,
|
||||
Position: "CO",
|
||||
NumActive: 4,
|
||||
Equity: EquityResult{Win: 0.45, Tie: 0.02, Loss: 0.53},
|
||||
ToCall: 50,
|
||||
PotOddsPct: 25.0,
|
||||
Hole: [2]string{"A♠", "K♠"},
|
||||
Community: "2♣ 7♦ J♠",
|
||||
Street: StreetFlop,
|
||||
Position: "CO",
|
||||
NumActive: 4,
|
||||
Equity: EquityResult{Win: 0.45, Tie: 0.02, Loss: 0.53},
|
||||
ToCall: 50,
|
||||
PotOddsPct: 25.0,
|
||||
HandCategory: "High Card",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user