Tests, edge cases and a fix with Copilot
Use Copilot the way a careful developer would: write tests first, let the edge cases expose the bug, ask for the smallest fix, and prove it with a green run before you commit.
You will learn:Asking for tests that cover edge casesReading a failing assertionA minimal fix, reviewed as a diffCommitting only after the tests pass
Related lessons: Unit Tests, Integration Tests and Edge Cases · Validate Copilot Output and Use It Responsibly · Generate, Refactor and Document Code