Intermediate 13 min

Review and test generated changes

Use a focused diff and check generated behavior against explicit acceptance criteria.

Read the diff from the entry point

Begin with the code a person will actually invoke. Trace how data crosses function boundaries and identify the behavior the change introduces. Ask for clarification when you cannot justify a new assumption or an extra dependency.

How it works

Read the changed file and then try the behavior at its normal entry point. Include the original case and one nearby case that could have been broken. A passing check matters because it observes an expected result you defined, even if the assistant reports that its changes look right.

Verify the behavior

Check the user-visible output with typical values and boundary values. For an error path, inspect whether the program leaves shared state consistent. A green check is only evidence for the scenario covered by the check, so compare the scenarios with the brief.

Keep recovery straightforward

Make one focused commit after reviewing the change. Avoid placing credentials or real customer data into prompts. If a release needs a rollback, use the project’s documented procedure and recheck the previous behavior.

Check your understanding

A timer accepts whole minutes from 1 through 30. A generated check uses only 10. Name values that test both ends of the allowed range.

See the example and explanation
Example 1
Given 0, 1, 30, 31
Answer Reject, accept, accept, reject

Zero and 31 should be rejected. One and 30 should be accepted. These cases reveal whether either endpoint is excluded or whether the range is too generous.

Open practice problem
Next lessonReview a generated diff