Question 230
The issue remains unresolved in a GitHub Copilot workflow: A developer must build unit tests for a calculator with division and rounding logic. What failure mechanism should the team investigate first?
Explanation
Correct Answer
This is the mechanism or missing prerequisite that accounts for the reported failure. AI-assisted tests still require independent expected outcomes. Correct it by: Ask Copilot for boundary cases and then verify each generated assertion; confirm with: Tests include zero divisors and rounding boundaries with manually validated expectations.
Incorrect Answers
The generated suite exercised only the happy path. The stated evidence instead indicates: Generated tests copied the implementation's mistakes into expected values.
The rewrite was accepted without preserving legacy behavior. The stated evidence instead indicates: Generated tests copied the implementation's mistakes into expected values.
A generic explanation ignored language-version differences. The stated evidence instead indicates: Generated tests copied the implementation's mistakes into expected values.