- Learn
- See
- Try
- Make
Test and review generated code
What this lesson is about
Use the requirements and your own tests to find the first failure. Wrong result, odd input, or a safety problem.
A function that should find the largest number starts its count at zero, and the style is neat. What do you test?
Why this matters
Generated code can read well and still miss odd inputs, state changes, or safety limits.
Lesson 1 of 8 on Coding & reasoning evaluationnextFind the first invalid reasoning stepPart 1 ends in a work sample you can send
Read the primary or official source: Chen et al., Evaluating Large Language Models Trained on Code (arXiv)