all memory allocated during the test case must be properly deallocated at the end of the test case.</p>

<p>Be mindful when writing your test case that the function being tested may rearrange the lists into a different configuration than what you started from; thus you will need to work out which steps are needed to properly deallocate afterwards. For example, a test case may start by creating two input lists, but after passing those lists to <code class="language-c++ highlighter-rouge"><span class="n">merg