🔥 3-day streak
GitHub Copilot76 / 190
Question 76 of 190

A developer has written a `calculateShippingCost(weightKg)` function that charges different rates across weight tiers: 0–5 kg, 5.01–20 kg, and above 20 kg. They select the function and ask Copilot Chat to generate unit tests. Copilot returns tests that check one typical value in each tier (e.g., 2 kg, 10 kg, 30 kg) but the developer wants stronger coverage. What is the most effective follow-up prompt to improve the test suite's ability to catch tier-boundary defects?

Reviewed for accuracy · Report an issueNext question