Writing failure case first
GitHub Copilot will read your implementation and generate a test case based on it. It tends to generate a test case for the success case. Be careful not to forget the failure case.
Description
Example
def divide(a, b):
return a / b
# Failure test case
def test_divide_by_zero():
# <YOUR CODE AND GITHUB COPILOT SUGGESTION HEERE>Exerecise
Checklist for Further Learning
Last updated