← Quiz: Refactoring with AI: all 10 questions
Quiz: Refactoring with AI · Question 6 of 10
A golden-master comparison shows the AI's refactor gives sports students a different fee. The old rule may even be wron…
A golden-master comparison shows the AI's refactor gives sports students a different fee. The old rule may even be wrong. What should you do?
- A.Keep the AI version, because it is probably right
- B.Make the refactor reproduce the old behaviour, and raise the rule question with the owner as a separate change
- C.Delete the sports concession
- D.Remove those cases from the test
Answer & explanation
Correct answer: Make the refactor reproduce the old behaviour, and raise the rule question with the owner as a separate change
Refactors must not silently change behaviour that people rely on.
Can you get the rest right without peeking?
Take the timed Quiz: Refactoring with AI quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →