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

This commit is contained in:
Zoltán Vörös 2021-06-12 15:09:24 +02:00 committed by Damien George
parent 3ab8806c0d
commit c4ed17ff34
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
"""
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)