summaryrefslogtreecommitdiffstats
path: root/docs/TESTING.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/TESTING.md')
-rw-r--r--docs/TESTING.md17
1 files changed, 14 insertions, 3 deletions
diff --git a/docs/TESTING.md b/docs/TESTING.md
index c68b6c4..ac07a3f 100644
--- a/docs/TESTING.md
+++ b/docs/TESTING.md
@@ -40,7 +40,7 @@ or a vendored OpenSSL.
40| `tests/blackjack.rs` | Card totals, naturals, hit/stand/double, dealer bust, S17, state parsing. | 40| `tests/blackjack.rs` | Card totals, naturals, hit/stand/double, dealer bust, S17, state parsing. |
41| `tests/crash.rs` | Multiplier curve, payout floor, crash-point distribution, house edge, cap. | 41| `tests/crash.rs` | Multiplier curve, payout floor, crash-point distribution, house edge, cap. |
42| `tests/protocol.rs` | Newline buffering and timeout/error classification. | 42| `tests/protocol.rs` | Newline buffering and timeout/error classification. |
43| `tests/roulette.rs` | Wheel, every bet type and payout, zero handling, cursor lattice, result parser. | 43| `tests/roulette.rs` | Wheel, every bet type and payout, zero handling, cursor grid (straight/split/corner), result parser. |
44| `tests/server_core.rs` | Handler, bcrypt migration, SQL injection, transaction rollback, `plays` audit, sessions. | 44| `tests/server_core.rs` | Handler, bcrypt migration, SQL injection, transaction rollback, `plays` audit, sessions. |
45| `tests/server_setup.rs` | `--init` identity generation, PKCS#12 loadability, overwrite refusal. | 45| `tests/server_setup.rs` | `--init` identity generation, PKCS#12 loadability, overwrite refusal. |
46| `tests/slots.rs` | Server slots payout rules and overflow handling. | 46| `tests/slots.rs` | Server slots payout rules and overflow handling. |
@@ -98,8 +98,11 @@ Use an 80-column terminal because several output lines are width-sensitive.
981. `play roulette` draws the full felt: 0, the 3x12 numbers, dozens, columns, 981. `play roulette` draws the full felt: 0, the 3x12 numbers, dozens, columns,
99 and the six outside cells, with the cursor on number 1. 99 and the six outside cells, with the cursor on number 1.
1002. Arrows move the cursor. On the numbers the highlighted cells show the bet: 1002. Arrows move the cursor. On the numbers the highlighted cells show the bet:
101 one number (straight), two (split), four (corner). Down leaves the felt into 101 one number (straight), two (split), four (corner). Every number and every
102 the dozens, then columns, then outside; Up walks back. 102 adjacent pair is reachable: from 1, Right is the 1/4 split and Right again is
103 number 4; Up is the 1/2 split and Up again is number 2. The status line names
104 the bet and its odds. Down leaves the felt into the dozens, then columns,
105 then outside; Up walks back.
1033. ENTER places the chip where the cursor is; `C` clears; `+`/`=`/`-` change the 1063. ENTER places the chip where the cursor is; `C` clears; `+`/`=`/`-` change the
104 chip size. The bets line lists every chip and the total. 107 chip size. The bets line lists every chip and the total.
1054. Space scrolls the wheel under a fixed ball marker and ends on the winning 1084. Space scrolls the wheel under a fixed ball marker and ends on the winning
@@ -113,6 +116,14 @@ Use an 80-column terminal because several output lines are width-sensitive.
1136. The result line names the number, color and parity, the total returned and 1166. The result line names the number, color and parity, the total returned and
114 the profit. The next spin reuses the placed chips. 117 the profit. The next spin reuses the placed chips.
115 118
119## Manual history check
120
1211. Play a few rounds across games, then run `history`.
1222. The table is newest first and shows the time, game, bet, winnings, balance
123 and a one-line result (`17 black`, `cashed 1.12x`, `none`, `win`).
1243. `history 2` shows two rows; `history 0` and `history nope` are rejected
125 without sending anything. A fresh account says `No plays recorded yet.`
126
116## Manual terminal size check 127## Manual terminal size check
117 128
1181. Start the client in a terminal smaller than 80x24: it must print 1291. Start the client in a terminal smaller than 80x24: it must print