Mar-10-2022, 07:45 AM
(This post was last modified: Mar-10-2022, 07:54 AM by Drone4four.)
(Mar-10-2022, 07:37 AM)ndc85430 Wrote: Tests are a better way than printing to check your code works. Why better? Because they'll fail if you break something - that way, you're relying on the computer to help you than a human checking the output.
As a matter of fact the instructor for this Udemy course I am taking mentions unit tests in passing at the end of the module that I am working on right now. The instructor says that unit tests will come up again later in the course with a whole section devoted to it.
ndc85430: I appreciate the time and care you put into writing this unit test tailored for my test case which clearly took quite a bit of effort on your part.