diff options
Diffstat (limited to 'docs/TESTING.md')
| -rw-r--r-- | docs/TESTING.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/TESTING.md b/docs/TESTING.md index 4d46855..2dcb01f 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md | |||
| @@ -14,6 +14,7 @@ shared global database. Each test owns its state. | |||
| 14 | | `tests/client_core.rs` | Client command/game flows via a headless screen applying logical effects. | | 14 | | `tests/client_core.rs` | Client command/game flows via a headless screen applying logical effects. | |
| 15 | | `tests/client_ui.rs` | Help, history, completion, bet parsing, display width, cursor math. | | 15 | | `tests/client_ui.rs` | Help, history, completion, bet parsing, display width, cursor math. | |
| 16 | | `tests/protocol.rs` | Newline buffering and timeout/error classification. | | 16 | | `tests/protocol.rs` | Newline buffering and timeout/error classification. | |
| 17 | | `tests/roulette.rs` | European wheel, split-bet payouts, zero handling, result parser. | | ||
| 17 | | `tests/server_core.rs` | Handler, bcrypt migration, SQL injection, transaction rollback, `plays` audit, sessions. | | 18 | | `tests/server_core.rs` | Handler, bcrypt migration, SQL injection, transaction rollback, `plays` audit, sessions. | |
| 18 | | `tests/server_setup.rs` | `--init` identity generation, PKCS#12 loadability, overwrite refusal. | | 19 | | `tests/server_setup.rs` | `--init` identity generation, PKCS#12 loadability, overwrite refusal. | |
| 19 | | `tests/slots.rs` | Server slots payout rules and overflow handling. | | 20 | | `tests/slots.rs` | Server slots payout rules and overflow handling. | |
| @@ -63,6 +64,19 @@ Use an 80-column terminal because several output lines are width-sensitive. | |||
| 63 | fingerprint fits 80 columns. | 64 | fingerprint fits 80 columns. |
| 64 | 10. Windows: repeat 2-9 and confirm keys are not duplicated or printed twice. | 65 | 10. Windows: repeat 2-9 and confirm keys are not duplicated or printed twice. |
| 65 | 66 | ||
| 67 | ## Manual roulette checklist | ||
| 68 | |||
| 69 | 1. `play roulette` shows the balance, chip size, empty bets, and controls. | ||
| 70 | 2. `R`/`B`/`E`/`O` add one chip; digits + Enter add a number; `C` clears; | ||
| 71 | `+`/`=`/`-` change the chip size. | ||
| 72 | 3. Space scrolls the wheel under a fixed ball marker and ends on the winning | ||
| 73 | number. | ||
| 74 | 4. Check a split result: | ||
| 75 | - `17 black odd`: black+odd pay, red+even lose, straight 17 pays 36x. | ||
| 76 | - `0`: all outside bets lose; a straight 0 pays 36x. | ||
| 77 | 5. The result board shows the winning number/color/parity, the payout, and the | ||
| 78 | new balance. The next spin reuses the placed bets. | ||
| 79 | |||
| 66 | ## Manual server checks | 80 | ## Manual server checks |
| 67 | 81 | ||
| 68 | - Register, log out, log in again (bcrypt path). | 82 | - Register, log out, log in again (bcrypt path). |
