Warning: Make sure to check if all tests finish (there will be a message at the end of the file) -
It is possible for your program to crash early, but still show that tests have passed because it hasn't gone through everything.

Test list:

Constructor() | ShiftLeft() | ShiftRight() | PopBack() | PopFront() | PopAt() | GetBack() | GetFront() | GetAt() | AllocateMemory() | Resize() | IsFull() | PushBack() | PushFront() | PushAt() | Search()

Results:

Constructor()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_Constructor
1. Check initial member variable values passed
  1. m_array is nullptr
  2. m_arraySize = 0
  3. m_itemCount = 0
  1. m_array = "0"
  2. m_arraySize = 0
  3. m_itemCount = 0
  • When a new SmartDynamicArray is created, m_array should be nullptr and m_itemCount and m_arraySize should be 0.
SUMMARY FOR Test_Constructor: 1 out of 1 tests passed

ShiftLeft()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_ShiftLeft
Prerequisite functions:
  • ShiftLeft
0. Check if function ShiftLeft is implemented FAILED
  1. ShiftLeft = "Implemented"
  1. ShiftLeft = "Not implemented"
SUMMARY FOR Test_ShiftLeft: 0 out of 1 tests passed

ShiftRight()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_ShiftRight
Prerequisite functions:
  • ShiftRight
0. Check if function ShiftRight is implemented FAILED
  1. ShiftRight = "Implemented"
  1. ShiftRight = "Not implemented"
SUMMARY FOR Test_ShiftRight: 0 out of 1 tests passed

PopBack()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_PopBack
Prerequisite functions:
  • PopBack
0. Check if function PopBack is implemented FAILED
  1. PopBack = "Implemented"
  1. PopBack = "Not implemented"
SUMMARY FOR Test_PopBack: 0 out of 1 tests passed

PopFront()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_PopFront
Prerequisite functions:
  • PopFront
0. Check if function PopFront is implemented FAILED
  1. PopFront = "Implemented"
  1. PopFront = "Not implemented"
SUMMARY FOR Test_PopFront: 0 out of 1 tests passed

PopAt()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_PopAt
Prerequisite functions:
  • PopAt
0. Check if function PopAt is implemented FAILED
  1. PopAt = "Implemented"
  1. PopAt = "Not implemented"
SUMMARY FOR Test_PopAt: 0 out of 1 tests passed

GetBack()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_GetBack
Prerequisite functions:
  • GetBack
0. Check if function GetBack is implemented FAILED
  1. GetBack = "Implemented"
  1. GetBack = "Not implemented"
SUMMARY FOR Test_GetBack: 0 out of 1 tests passed

GetFront()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_GetFront
Prerequisite functions:
  • GetFront
0. Check if function GetFront is implemented FAILED
  1. GetFront = "Implemented"
  1. GetFront = "Not implemented"
SUMMARY FOR Test_GetFront: 0 out of 1 tests passed

GetAt()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_GetAt
Prerequisite functions:
  • GetAt
0. Check if function GetAt is implemented FAILED
  1. GetAt = "Implemented"
  1. GetAt = "Not implemented"
SUMMARY FOR Test_GetAt: 0 out of 1 tests passed

AllocateMemory()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_AllocateMemory
Prerequisite functions:
  • AllocateMemory
0. Check if function AllocateMemory is implemented FAILED
  1. AllocateMemory = "Implemented"
  1. AllocateMemory = "Not implemented"
SUMMARY FOR Test_AllocateMemory: 0 out of 1 tests passed

Resize()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_Resize
Prerequisite functions:
  • Resize
0. Check if function Resize is implemented FAILED
  1. Resize = "Implemented"
  1. Resize = "Not implemented"
SUMMARY FOR Test_Resize: 0 out of 1 tests passed

IsFull()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_IsFull
Prerequisite functions:
  • IsFull
0. Check if function IsFull is implemented FAILED
  1. IsFull = "Implemented"
  1. IsFull = "Not implemented"
SUMMARY FOR Test_IsFull: 0 out of 1 tests passed

PushBack()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_PushBack
Prerequisite functions:
  • PushBack
  • Resize
0a. Check if function PushBack is implemented FAILED
  1. PushBack = "Implemented"
  1. PushBack = "Not implemented"
  • SmartDynamicArray::PushBack is not yet implemented! Make sure to remove the "throw Exception::NotImplementedException" when working on a function.
SUMMARY FOR Test_PushBack: 0 out of 1 tests passed

PushFront()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_PushFront
Prerequisite functions:
  • PushFront
  • AllocateMemory
  • Resize
0a. Check if function PushFront is implemented FAILED
  1. PushFront = "Implemented"
  1. PushFront = "Not implemented"
SUMMARY FOR Test_PushFront: 0 out of 1 tests passed

PushAt()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_PushAt
Prerequisite functions:
  • PushAt
0a. Check if function PushAt is implemented FAILED
  1. PushAt = "Implemented"
  1. PushAt = "Not implemented"
SUMMARY FOR Test_PushAt: 0 out of 1 tests passed

Search()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_Search
Prerequisite functions:
  • Search
0. Check if function Search is implemented FAILED
  1. Search = "Implemented"
  1. Search = "Not implemented"
SUMMARY FOR Test_Search: 0 out of 1 tests passed
16 testsets ran; 1 testsets passed