diff options
author | Damien George <damien.p.george@gmail.com> | 2017-05-05 21:44:12 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-05-06 10:29:09 +1000 |
commit | dce7dd425977320b822f8bb529d123eafebe6e55 (patch) | |
tree | 87aec898c101280b0e1934a4521ef0074a866d89 /tests | |
parent | 58bb73e010301235b32c3b81575af21cca55f2a7 (diff) | |
download | micropython-dce7dd425977320b822f8bb529d123eafebe6e55.tar.gz micropython-dce7dd425977320b822f8bb529d123eafebe6e55.zip |
tests/micropython: Add test for int.from_bytes with many zero bytes.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/micropython/heapalloc_int_from_bytes.py | 1 | ||||
-rw-r--r-- | tests/micropython/heapalloc_int_from_bytes.py.exp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/micropython/heapalloc_int_from_bytes.py b/tests/micropython/heapalloc_int_from_bytes.py index f8afd2280a..5fe50443ae 100644 --- a/tests/micropython/heapalloc_int_from_bytes.py +++ b/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() diff --git a/tests/micropython/heapalloc_int_from_bytes.py.exp b/tests/micropython/heapalloc_int_from_bytes.py.exp index 7ceb19a384..5ac6a573fe 100644 --- a/tests/micropython/heapalloc_int_from_bytes.py.exp +++ b/tests/micropython/heapalloc_int_from_bytes.py.exp @@ -1,2 +1,3 @@ 49 12849 +50 |