or
A Tester walks into a bar
He orders
Its one of the only ways to know for certain that your code is working the way that you intend.
Also, its easy to accidentaly break another part of your program
Cold call
Cold call
I am going to open the assessment and write a test
That type of test is called a canary test
Now I'm going to test one possible happy path
In your assessment
Create a canary test and a happy path test
Make sure that you also test that the function can handle bad input
It expects a string? Give it a number
Give it nothing, give it a function, give it an object...
The code should handle failure in an expected way
Write your tests for the assessment