Streamline training tasks and add debugging guide
Reorganize the README checklist: fold the standalone Ex-command task into earlier tasks, give the outline panel its own bindings (g o / Ctrl+Shift+O), and add a dedicated debugging task with breakpoint, stepping, and fault-finding drills anchored to real lines in the training app. Annotate the training app sources and tests with Chinese practice hints (multi-cursor, macro, text-object, and breakpoint spots). Drop the redundant root tsconfig, since training/tsconfig.json already covers src and tests, and remove the stale LEADERBOARD.md left over from the deleted challenge mode.
This commit is contained in:
@@ -18,6 +18,7 @@ export function available(productId: string): number {
|
||||
return stock.get(productId) ?? 0;
|
||||
}
|
||||
|
||||
// 预占库存:不够就抛 StockError —— cif 改函数体 / ci" 改错误消息的靶子
|
||||
export function reserve(productId: string, quantity: number): void {
|
||||
const left = available(productId);
|
||||
if (quantity > left) {
|
||||
|
||||
Reference in New Issue
Block a user