Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
c4ed17ff
Commit
c4ed17ff
authored
Jun 12, 2021
by
Zoltán Vörös
Committed by
Damien George
Jun 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/cpydiff: Add test for array constructor with overflowing value.
parent
3ab8806c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tests/cpydiff/module_array_constructor.py
tests/cpydiff/module_array_constructor.py
+10
-0
No files found.
tests/cpydiff/module_array_constructor.py
0 → 100644
View file @
c4ed17ff
"""
categories: Modules,array
description: Overflow checking is not implemented
cause: MicroPython implements implicit truncation in order to reduce code size and execution time
workaround: If CPython compatibility is needed then mask the value explicitly
"""
import
array
a
=
array
.
array
(
"b"
,
[
257
])
print
(
a
)
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