kopia lustrzana https://github.com/micropython/micropython-lib
heapq: Add simple test.
rodzic
1d8811514f
commit
1867507154
|
@ -0,0 +1,8 @@
|
|||
import heapq
|
||||
|
||||
|
||||
h = []
|
||||
heapq.heappush(h, (10.1, 0))
|
||||
heapq.heappush(h, (1.1, 1))
|
||||
print(h)
|
||||
assert h == [(1.1, 1), (10.1, 0)]
|
Ładowanie…
Reference in New Issue