← Back to the recipe
Run data
Ask for tests first: 3 runs with, 3 without
Claude Code 2.1.302 · 17 Oct 2026 · 6 runs · costs as Claude Code reports them. Raw summary (JSON)
Prompt
Add a splitBill(items, people) function to the cart module that splits the cart total (including tax) between people and returns an array of each person's share.
Runs
| Run | Model | Cost | Turns | Time | npm run check passes | splitBill() correct on edge cases (hidden test) | added a test for splitBill | generated files untouched | ran tests after last edit | Diff |
|---|---|---|---|---|---|---|---|---|---|---|
| Just ask #1 | sonnet-5-5 | $0.057 | 13 | 18s | pass | pass | pass | pass | pass | diff |
| Just ask #2 | sonnet-5-5 | $0.067 | 15 | 20s | pass | fail | pass | pass | pass | diff |
| Just ask #3 | sonnet-5-5 | $0.099 | 20 | 33s | pass | pass | pass | pass | pass | diff |
| Tests first #1 | sonnet-5-5 | $0.089 | 17 | 31s | pass | pass | pass | pass | pass | diff |
| Tests first #2 | sonnet-5-5 | $0.101 | 13 | 37s | pass | pass | pass | pass | fail | diff |
| Tests first #3 | sonnet-5-5 | $0.100 | 14 | 37s | pass | pass | pass | pass | fail | diff |