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() | IsFull() | IsEmpty() | PushBack() | PushFront() | PushAt() | Search()

Results:

Constructor()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_Constructor
0a. Check if functions are implemented passed
  1. Prerequisite functions = "Implemented"
  1. Prerequisite functions = "Implemented"
Test_Constructor
1. Check initial member variable values passed
  1. ARRAY_SIZE = 100
  2. m_itemCount = 0
  1. ARRAY_SIZE = 100
  2. m_itemCount = 0
  • When a new SmartFixedArray is created, m_itemCount and should be 0 and ARRAY_SIZE should be 100.
SUMMARY FOR Test_Constructor: 2 out of 2 tests passed

ShiftLeft()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_ShiftLeft
Prerequisite functions:
  • ShiftLeft
0a. Check if function Clear (prereq) is implemented FAILED
  1. Clear (prereq) = "Implemented"
  1. Clear (prereq) = "Not implemented"
  • SmartFixedArray::ShiftLeft is not yet implemented! Make sure to remove the "throw Exception::NotImplementedException" when working on a function.
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
0a. Check if function Clear (prereq) is implemented FAILED
  1. Clear (prereq) = "Implemented"
  1. Clear (prereq) = "Not implemented"
  • SmartFixedArray::ShiftLeft is not yet implemented! Make sure to remove the "throw Exception::NotImplementedException" when working on a function.
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

IsFull()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_IsFull
Prerequisite functions:
  • IsFull
0. Check if function IsFull is implemented passed
  1. IsFull = "Implemented"
  1. IsFull = "Implemented"
Test_IsFull
Prerequisite functions:
  • IsFull
1. Check if IsFull returns true when full passed
  1. IsFull() = true
  1. IsFull() = true
Test_IsFull
Prerequisite functions:
  • IsFull
2. Check if IsFull returns false when not full passed
  1. IsFull() = false
  1. IsFull() = false
SUMMARY FOR Test_IsFull: 3 out of 3 tests passed

IsEmpty()

Test set Test Pass/fail Expected
output
Actual
output
Comments
Test_IsEmpty
Prerequisite functions:
  • IsEmpty
0. Check if function IsEmpty is implemented FAILED
  1. IsEmpty = "Implemented"
  1. IsEmpty = "Not implemented"
SUMMARY FOR Test_IsEmpty: 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"
  • SmartFixedArray::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
15 testsets ran; 2 testsets passed