In the earlier section, we learned how to write test cases, but did we test our code? No. We did the tests with some oblivious values. And we know that is not the purpose of tests. Tests are there to make sure that our functions, classes, and code blocks are working as expected.
We should write the tests on top of our existing code (unless we are following Test-driven development (TDD)).
The following is a small Kotlin file that contains ...