deq doesn't remove the element from the queue #4

Closed
kowshik opened this Issue Oct 12, 2012 · 1 comment

Comments

Projects
None yet
2 participants

kowshik commented Oct 12, 2012

require "circular_queue"

q = CircularQueue.new(3)
q.enq(1)
q.enq(2)
q.enq(3)

q.deq

puts q.data

The above incorrectly prints [2,3,1] when we expect it to print [2,3].

alindeman closed this in f0e2a1e Oct 12, 2012

Owner

alindeman commented Oct 12, 2012

Thanks! Released 0.0.5 with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment