mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
tests/micropython: Add test for int.from_bytes with many zero bytes.
This commit is contained in:
@@ -5,4 +5,5 @@ import micropython
|
|||||||
micropython.heap_lock()
|
micropython.heap_lock()
|
||||||
print(int.from_bytes(b"1", "little"))
|
print(int.from_bytes(b"1", "little"))
|
||||||
print(int.from_bytes(b"12", "little"))
|
print(int.from_bytes(b"12", "little"))
|
||||||
|
print(int.from_bytes(b"2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "little"))
|
||||||
micropython.heap_unlock()
|
micropython.heap_unlock()
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
49
|
49
|
||||||
12849
|
12849
|
||||||
|
50
|
||||||
|
|||||||
Reference in New Issue
Block a user