Question: c++) using the following code, modify to test these objectives: In the main(), include test cases for Deque and Deque , respectively. To be specific,
c++) using the following code, modify to test these objectives:
- In the main(), include test cases for Deque
and Deque , respectively. To be specific, test each operation listed above in the Deque class at least once for each Deque object. - For each test case in your code, print the name of the test case on the console and call display() as a verification. No points will be given to a test case that does not display the name of the test case and the result of the test case.
- When you fill each Deque with many keys or elements, use a loop and a random number generator if you can.
- Do not interact with the keyboard in the test code so that program testing time can be reduced.
- Catch all exceptions that can be raised by the Deque.
#include
using namespace std;
template
public: Deque(); Deque(const Deque
} int main() { Deque
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
