PREV INDEX NEXT

Author: Unknown
Subject: Is testDeque handling failed pops() incorrectly?
Date: Monday, 16 Mar 2020, 21:09:56

I'm running testDeque with my own Deque ADT and when I try to remove elements on an empty Deque, the output is garbled. Here is my sequence of commands:
CA
AA1
AA2
RA
1
RA
2
RA
remD(A) failed: �rW

When I run valgrind with the same exact input, the first error is an Invalid Read of Size 1 with traces back to testDeque.

Is this a problem with testDeque or is it a problem with my Deque implementation?
PREV INDEX NEXT