diff --git a/test.js b/test.js index 2824dae..ee00268 100644 --- a/test.js +++ b/test.js @@ -16,4 +16,13 @@ console.assert(pq.peek() === null) pq.clear() -console.assert(pq.dequeue() === null) \ No newline at end of file +console.assert(pq.dequeue() === null) + +pq.queue(51) +pq.queue(52) +pq.queue(53) +pq.queue(54, 2) +console.assert(pq.dequeue() === 54) +console.assert(pq.dequeue() === 51) +console.assert(pq.dequeue() === 52) +console.assert(pq.dequeue() === 53) \ No newline at end of file