list1.print() print("After insert_keep_old(8)") list1.insert_keep_old("8") list1.print() print("Capacity is ", list1.capacity()) print("Testing remove_newest()") list1.remove_newest() list1.print() print("Testing remove_oldest()") list1.remove_oldest() list1.print() print("Size of RingBuffer", list1.sizeOf()) print("Capacity of RingBuffer", list1.capacity()) print("Testing find. Searching for 3") list1.Find("3") print("Reseting the RingBuffer to capacity 0") list1 = RingBuffer(0) print("Trying to insert_keep_new(1)") list1.insert_keep_new("1") print("-----------------------") print("Test Case of Stack") print( "Assumed Stack capacity is 5 for testing. All the test cases below are according to size 5" ) sizeOfS = int(input("Enter size of Stack")) list1 = Stack(sizeOfS) print("Adding 1") list1.push(1)