Commit c4ed17ff authored by Zoltán Vörös's avatar Zoltán Vörös Committed by Damien George

tests/cpydiff: Add test for array constructor with overflowing value.

parent 3ab8806c
"""
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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment