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

This commit is contained in:
Damien George 2017-05-05 21:44:12 +10:00
parent 58bb73e010
commit dce7dd4259
2 changed files with 2 additions and 0 deletions

View File

@ -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()

View File

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