tests/basics: Add tests to improve coverage of binary.c.

This commit is contained in:
Rami Ali
2016-12-28 15:29:21 +11:00
committed by Damien George
parent ea6a958393
commit 65574f817a
5 changed files with 39 additions and 0 deletions

View File

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