AlgoViz

Write tests that disagree with broken code

hard 12 min

Choose assertions that can distinguish a correct service from a plausible defective one.

Where it shows up

The same pattern appears across everyday software.

  • The case

    A generated reservation suite has forty tests. Each checks for a success response. A one-line change that debits one unit for a two-unit claim still passes all forty.

  • Engineering consequence

    If the state is intentionally internal, inspect it through another public operation, such as attempting to purchase the remaining units.