Ad
  • Custom User Avatar

    A test case is usually a call to your function with a particular value in it that you do not know.
    This acts as an effective way to test your work on unseen values, sort of like an unseen examination for your code.

    They usually contain a few tricky values to make sure that your code is robust and applicable to all of the cases for which it is required.