tests/basics: Add tests to improve coverage of binary.c.
This commit is contained in:
12
tests/basics/array_micropython.py
Normal file
12
tests/basics/array_micropython.py
Normal 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])
|
||||
Reference in New Issue
Block a user