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()
|
||||
print(int.from_bytes(b"1", "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()
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
49
|
||||
12849
|
||||
50
|
||||
|
||||
Reference in New Issue
Block a user