Skip to content
Snippets Groups Projects
Commit 68b0dfa5 authored by j2-mcdaid's avatar j2-mcdaid :skull_crossbones:
Browse files

Add new file

parent 43118c90
No related branches found
No related tags found
No related merge requests found
<h1>Task 2</h1>
[Worksheet 2](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/tree/main/Worksheets/Worksheet2) | [Task 1](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/tree/main/Worksheets/Worksheet2/Task%201) | [Task 3](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/tree/main/Worksheets/Worksheet2/Task%203) <br/>
Task 2 involves developing unit tests for the allocator already created. These unit tests serve to further validate the allocator and to ensure that any further development does not adversly affect the program. As this task mostly expands upon task 1, it uses the same header, template and definition files, only needing new code to implement and run the unit test.<br/>
5 unit tests have been implemented, this should test multiple applications of the allocator and ensure that it runs as necassary. The tests implemented are below and the results are summerised at the bottom:<br/>
<h3>Test 1 - Basic allocation and deallocation</h3>
![Test 1](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task2_test1.png)<br/><br/>
<h3>Test 2 - Full allocation</h3>
![Test 2](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task2_test2.png)<br/><br/>
<h3>Test 3 - Mixed type allocation</h3>
![Test 3](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task2_test3.png)<br/><br/>
<h3>Test 4 - Reset when deallocation is complete</h3>
![Test 4](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task2_test4.png)<br/><br/>
<h3>Test 5 - Over capacity of allocation</h3>
![Test 5](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task2_test5.png)<br/><br/>
<h3>Results</h3>
![Results](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/blob/main/Worksheets/Worksheet2/images/task2_results.png)<br/>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment