From 60592fd23c8acd4ed4f70d8fbe8f8b11ea58082c Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 19 Sep 2016 17:20:41 +0300 Subject: [PATCH] tests/array1: Add tests for "l", "L" array types to improve coverage. --- tests/basics/array1.py | 6 ++++++ 1 file changed, 6 insertions(+) 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')))