Add basic array.array test.

This commit is contained in:
Paul Sokolovsky 2014-01-28 03:16:37 +02:00
parent 7e652af242
commit 8e991e0680
1 changed files with 13 additions and 0 deletions

13
tests/basics/array.py Normal file
View File

@ -0,0 +1,13 @@
import array
a = array.array('B', [1, 2, 3])
print(a, len(a))
i = array.array('I', [1, 2, 3])
print(i, len(i))
print(a[0])
print(i[-1])
# Empty arrays
print(len(array.array('h')))
print(array.array('i'))