mirror of
https://github.com/pocketpy/pocketpy
synced 2025-12-07 02:30:17 +00:00
* 通过引发py_call错误覆盖相关调用者的ok==false分支 * Revert "通过引发py_call错误覆盖相关调用者的ok==false分支" This reverts commit 36dc0b5d81a02a83dfdeca2d4d6d265f5f793b4b. * add test * rename test files * fix bugs * fix bugs
9 lines
180 B
Python
9 lines
180 B
Python
from heapq import heapify, heappop, heappush
|
|
from random import randint
|
|
|
|
a = [randint(0, 100) for i in range(1000)]
|
|
b = sorted(a)
|
|
|
|
heapify(a)
|
|
for x in b:
|
|
assert heappop(a) == x |