From dce7dd425977320b822f8bb529d123eafebe6e55 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 5 May 2017 21:44:12 +1000 Subject: [PATCH] tests/micropython: Add test for int.from_bytes with many zero bytes. --- tests/micropython/heapalloc_int_from_bytes.py | 1 + tests/micropython/heapalloc_int_from_bytes.py.exp | 1 + 2 files changed, 2 insertions(+) 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