Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
60592fd2
Commit
60592fd2
authored
Sep 19, 2016
by
Paul Sokolovsky
Browse files
tests/array1: Add tests for "l", "L" array types to improve coverage.
parent
b85bcd67
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/basics/array1.py
View file @
60592fd2
...
...
@@ -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'
)))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment