Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
dce7dd42
Commit
dce7dd42
authored
May 05, 2017
by
Damien George
Browse files
tests/micropython: Add test for int.from_bytes with many zero bytes.
parent
58bb73e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/micropython/heapalloc_int_from_bytes.py
View file @
dce7dd42
...
...
@@ -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
()
tests/micropython/heapalloc_int_from_bytes.py.exp
View file @
dce7dd42
49
12849
50
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment