blob: f8afd2280a91d50db02893a8bdbaa443fbd51d52 (
plain)
1
2
3
4
5
6
7
8
|
# Test that int.from_bytes() for small number of bytes generates
# small int.
import micropython
micropython.heap_lock()
print(int.from_bytes(b"1", "little"))
print(int.from_bytes(b"12", "little"))
micropython.heap_unlock()
|