* fix #14139 * Update lib/pure/collections/heapqueue.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Clyybber <darkmine956@gmail.com>
This commit is contained in:
parent
2629d619a1
commit
c645dba038
2 changed files with 12 additions and 3 deletions
9
tests/stdlib/t14139.nim
Normal file
9
tests/stdlib/t14139.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import heapqueue
|
||||
|
||||
var test_queue : HeapQueue[int]
|
||||
|
||||
test_queue.push(7)
|
||||
test_queue.push(3)
|
||||
test_queue.push(9)
|
||||
let i = test_queue.pushpop(10)
|
||||
assert i == 3
|
||||
Loading…
Add table
Add a link
Reference in a new issue