Skip to content

Commit

Permalink
Implements PriorityQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
emirpasic committed Apr 14, 2022
1 parent 8ace639 commit 2bf1bd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions queues/priorityqueue/priorityqueue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ func TestBinaryQueueEnqueueBulk(t *testing.T) {
if actualValue, ok := queue.Dequeue(); actualValue != 20 || !ok {
t.Errorf("Got %v expected %v", actualValue, 20)
}

queue.Clear()
if actualValue := queue.Empty(); !actualValue {
t.Errorf("Got %v expected %v", actualValue, true)
}
}

func TestBinaryQueueDequeue(t *testing.T) {
Expand Down

0 comments on commit 2bf1bd3

Please sign in to comment.