diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-09-19 17:20:41 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-09-19 17:20:41 +0300 |
commit | 60592fd23c8acd4ed4f70d8fbe8f8b11ea58082c (patch) | |
tree | a5f43949e892838da35f885686bbf18dffaef922 /tests/basics/array1.py | |
parent | b85bcd671c5dced62fa00f2e3c0c5541b0d16593 (diff) | |
download | micropython-60592fd23c8acd4ed4f70d8fbe8f8b11ea58082c.tar.gz micropython-60592fd23c8acd4ed4f70d8fbe8f8b11ea58082c.zip |
tests/array1: Add tests for "l", "L" array types to improve coverage.
Diffstat (limited to 'tests/basics/array1.py')
-rw-r--r-- | tests/basics/array1.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/array1.py b/tests/basics/array1.py index bce22cc57d..e5ea6683c3 100644 --- a/tests/basics/array1.py +++ b/tests/basics/array1.py @@ -6,6 +6,12 @@ i = array.array('I', [1, 2, 3]) print(i, len(i)) print(a[0]) print(i[-1]) +a = array.array('l', [-1]) +print(len(a), a[0]) +a1 = array.array('l', [1, 2, 3]) +a2 = array.array('L', [1, 2, 3]) +print(a2[1]) +print(a1 == a2) # Empty arrays print(len(array.array('h'))) |