Testing is a critical skill when writing software using Copilot.
Closed-box and open-box testing are different approaches to ensuring the code is correct. In closed-box testing, we come up with test cases based on what we know about the problem; in open-box testing, we additionally examine the code itself.
Doctest is a convenient way to test your code by adding test cases to the docstring description of a function.
Creating artificial files is an effective way to test code that uses files.
Summary
本章小结