t14139.nim 181 B

1234567891011
  1. import std/heapqueue
  2. import std/assertions
  3. var test_queue : HeapQueue[int]
  4. test_queue.push(7)
  5. test_queue.push(3)
  6. test_queue.push(9)
  7. let i = test_queue.pushpop(10)
  8. doAssert i == 3