t14139.nim 153 B

12345678910
  1. import heapqueue
  2. var test_queue : HeapQueue[int]
  3. test_queue.push(7)
  4. test_queue.push(3)
  5. test_queue.push(9)
  6. let i = test_queue.pushpop(10)
  7. assert i == 3