From 65574f817a949fea2316c335da866c1b8d20f1fb Mon Sep 17 00:00:00 2001 From: Rami Ali Date: Wed, 28 Dec 2016 15:29:21 +1100 Subject: tests/basics: Add tests to improve coverage of binary.c. --- tests/basics/array_micropython.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/basics/array_micropython.py (limited to 'tests/basics/array_micropython.py') diff --git a/tests/basics/array_micropython.py b/tests/basics/array_micropython.py new file mode 100644 index 000000000..8e904bdfe --- /dev/null +++ b/tests/basics/array_micropython.py @@ -0,0 +1,12 @@ +# test MicroPython-specific features of array.array +import array + +# arrays of objects +a = array.array('O') +a.append(1) +print(a[0]) + +# arrays of pointers +a = array.array('P') +a.append(1) +print(a[0]) -- cgit v1.2.3