1# Test that int.from_bytes() for small number of bytes generates
2# small int.
3import micropython
4
5micropython.heap_lock()
6print(int.from_bytes(b"1", "little"))
7print(int.from_bytes(b"12", "little"))
8print(int.from_bytes(b"2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "little"))
9micropython.heap_unlock()
10