circuitpython/tests/basics/array_add.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
258 B
Python
Raw Normal View History

# test array + array
try:
2023-08-22 11:15:46 -04:00
import array
except ImportError:
2023-08-22 11:15:46 -04:00
print("SKIP")
raise SystemExit
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)