diff options
| author | historia <[not public]> | 2026-09-18 05:31:09 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-18 05:31:09 -0400 |
| commit | 153acb7f644d755c45533b7c5311e3ffa47e8973 (patch) | |
| tree | 7645e6f7b65bc3830b078e3b9336d2e6b199d584 /internal/casino/credits_test.go | |
| parent | 87d08f0151e643951769e323995f1c5ed89ee200 (diff) | |
| download | thehouseoficarus-153acb7f644d755c45533b7c5311e3ffa47e8973.tar.gz | |
fix: harden engine across casino, economy, concurrency, security, and content
Diffstat (limited to 'internal/casino/credits_test.go')
| -rw-r--r-- | internal/casino/credits_test.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/internal/casino/credits_test.go b/internal/casino/credits_test.go index cff19c9..eed12fa 100644 --- a/internal/casino/credits_test.go +++ b/internal/casino/credits_test.go @@ -4,19 +4,6 @@ import ( "testing" ) -func TestAddCreditsChecked(t *testing.T) { - sum, err := AddCredits(5, 7) - if err != nil || sum != 12 { - t.Fatalf("AddCredits(5,7) = %d, %v", sum, err) - } - if sum, err := AddCredits(MaxCredits, 1); err == nil || sum != MaxCredits { - t.Fatalf("overflow add: %d, %v", sum, err) - } - if _, err := AddCredits(MaxCredits, -1); err == nil { - t.Fatal("negative add must be rejected") - } -} - func TestMulPayoutBoundsAndConverts(t *testing.T) { payout, err := MulPayout(10, 1.5) if err != nil || payout != 15 { |
