Browse Source

tests/micropython: Add test for int.from_bytes with many zero bytes.

pull/3068/head
Damien George 8 years ago
parent
commit
dce7dd4259
  1. 1
      tests/micropython/heapalloc_int_from_bytes.py
  2. 1
      tests/micropython/heapalloc_int_from_bytes.py.exp

1
tests/micropython/heapalloc_int_from_bytes.py

@ -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
tests/micropython/heapalloc_int_from_bytes.py.exp

@ -1,2 +1,3 @@
49
12849
50

Loading…
Cancel
Save