Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/tests/basics/array_add.py

17 lines
258 B
Python
Raw Normal View History

py: Implement +, += and .extend for bytearray and array objs. Addresses issue #994.
2014-11-30 00:00:55 +00:00
# test array + array
tests/array*: Allow to skip test if "array" is unavailable.
2017-01-07 01:13:40 +03:00
try:
tests: Replace umodule with module everywhere. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-08-18 16:57:45 +10:00
import array
tests/array*: Allow to skip test if "array" is unavailable.
2017-01-07 01:13:40 +03:00
except ImportError:
tests: Replace umodule with module everywhere. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-08-18 16:57:45 +10:00
print("SKIP")
raise SystemExit
py: Implement +, += and .extend for bytearray and array objs. Addresses issue #994.
2014-11-30 00:00:55 +00:00
a1 = array.array('I', [1])
a2 = array.array('I', [2])
print(a1 + a2)
a1 += array.array('I', [3, 4])
print(a1)
a1.extend(array.array('I', [5]))
print(a1)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 199ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API