diff options
Diffstat (limited to '')
| -rw-r--r-- | docs/TESTING.md | 17 |
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. | |||
| 98 | 1. `play roulette` draws the full felt: 0, the 3x12 numbers, dozens, columns, | 98 | 1. `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. |
| 100 | 2. Arrows move the cursor. On the numbers the highlighted cells show the bet: | 100 | 2. 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. | ||
| 103 | 3. ENTER places the chip where the cursor is; `C` clears; `+`/`=`/`-` change the | 106 | 3. 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. |
| 105 | 4. Space scrolls the wheel under a fixed ball marker and ends on the winning | 108 | 4. 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. | |||
| 113 | 6. The result line names the number, color and parity, the total returned and | 116 | 6. 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 | |||
| 121 | 1. Play a few rounds across games, then run `history`. | ||
| 122 | 2. 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`). | ||
| 124 | 3. `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 | ||
| 118 | 1. Start the client in a terminal smaller than 80x24: it must print | 129 | 1. Start the client in a terminal smaller than 80x24: it must print |
