Skip to content

Commit dce7dd4

Browse files
committed
tests/micropython: Add test for int.from_bytes with many zero bytes.
1 parent 58bb73e commit dce7dd4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/micropython/heapalloc_int_from_bytes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
micropython.heap_lock()
66
print(int.from_bytes(b"1", "little"))
77
print(int.from_bytes(b"12", "little"))
8+
print(int.from_bytes(b"2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "little"))
89
micropython.heap_unlock()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
49
22
12849
3+
50

0 commit comments

Comments
 (0)