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

Update READme.md

parent cabebea4
No related branches found
No related tags found
No related merge requests found
...@@ -19,13 +19,13 @@ Allocator:<br/> ...@@ -19,13 +19,13 @@ Allocator:<br/>
<h3>Step 3 - Testing</h3> <h3>Step 3 - Testing</h3>
There were several test needed to demonstrate certain functionality within the allocator. These were implemented within a basic user interface so that when ran the functionality could be chosen. It was implemented like this to ease testing and make the results more visually coherent. The code has not been proofed against incorrect user entry as it only serves as an example of functionality rather than as a program aimed to be used regularly.<br/> There were several test needed to demonstrate certain functionality within the allocator. These were implemented within a basic user interface so that when ran the functionality could be chosen. It was implemented like this to ease testing and make the results more visually coherent. The code has not been proofed against incorrect user entry as it only serves as an example of functionality rather than as a program aimed to be used regularly.<br/>
![While Loop](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task1_main_while.png "While loop")<br/> ![While Loop](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task1_main_while.png "While loop")<br/>
![While terminal](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task1_main_while_terminal.png "While terminal)<br/> ![While terminal](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task1_main_while_terminal.png "While terminal")<br/>
<h5>Example 1 - Integer allocation</h5> <h5>Example 1 - Integer allocation</h5>
Integer allocation is one of the simplest functionalities of an allocater. <br/> Integer allocation is one of the simplest functionalities of an allocater. <br/>
Code:<br/> Code:<br/>
![Integer test](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task1_test1.png "Integer results)<br/> ![Integer test](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task1_test1.png "Integer results")<br/>
This gives the results below when ran:<br/> This gives the results below when ran:<br/>
![Integer result](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task1_result1.png "Integer result")<br/> ![Integer result](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task1_result1.png "Integer result")<br/>
...@@ -45,9 +45,9 @@ This gives the results below when ranL<br/> ...@@ -45,9 +45,9 @@ This gives the results below when ranL<br/>
<h5>Example 4 - Allocator resets</h5> <h5>Example 4 - Allocator resets</h5>
The allocater should reset when deallocation matches the number of successfull allocations.<br/> The allocater should reset when deallocation matches the number of successfull allocations.<br/>
Code: Code: <br/>
![Reset test](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task1_test4.png "Reset test")<br/> ![Reset test](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task1_test4.png "Reset test")<br/>
The deallocator is called twice, first to deallocate all objects, then to reset itself. The deallocator is called twice, first to deallocate all objects, then to reset itself.<br/>
![Reset result](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task1_result4.png "Reset result")<br/> ![Reset result](https://gitlab.uwe.ac.uk/j2-mcdaid/advanced-systems-programming/-/raw/main/Worksheets/Worksheet2/images/task1_result4.png "Reset result")<br/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment