Commits

Anonymous committed a2bcc11

test: different interface

Comments (0)

Files changed (1)

t/pqueue_test.erl

                 Items).
 
 pop_items(Queue) ->
-    case pqueue:is_empty(Queue) of
-        true ->
+    case pqueue:size(Queue) of
+        0 ->
             ok;
         _ ->
             {_Item, NewQueue} = pqueue:pop(Queue),