[docs] Rose: Analysis, review, lesson, and G1.4 closed
This commit is contained in:
@@ -102,3 +102,19 @@ inputs, a fake that accepts everything tests a different program.
|
||||
**How to apply it.** A fake for a boundary does the boundary's checks: a storage fake
|
||||
calls `structuredClone` on what it is given. An e2e test that reloads after a write first
|
||||
waits for the write to be readable (`e2e/stored.ts`), never for the screen alone.
|
||||
|
||||
## A test that fails for another reason proves nothing about this one
|
||||
|
||||
**What happened.** On 2026-11-02 two bug drills on the rose passed. Making too much water
|
||||
"help" was not caught: every too-full test poured on a rose that did not need water, so
|
||||
it failed for that reason and never reached the too-full rule. Replaying the log in
|
||||
stored order instead of time order was not caught either: the shuffle property rarely
|
||||
built a log in which order changes the outcome.
|
||||
|
||||
**Why it bit.** A guard with two conditions is tested only when one input passes the
|
||||
first and fails the second. A random property can pass a hundred runs and never build
|
||||
the one case that matters.
|
||||
|
||||
**How to apply it.** For each condition, write the case where only it decides (from
|
||||
0.39 a full can overshoots: needed, too full). For an order property, add one fixed
|
||||
log where order changes the answer. Then put the bug back and watch the test fail.
|
||||
|
||||
Reference in New Issue
Block a user