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

pull/7396/head
Zoltán Vörös 2021-06-12 15:09:24 +02:00 zatwierdzone przez Damien George
rodzic 3ab8806c0d
commit c4ed17ff34
1 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

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